gruppler / ptn-ninja Goto Github PK
View Code? Open in Web Editor NEWAn editor and viewer for Portable Tak Notation
Home Page: https://ptn.ninja
License: GNU Affero General Public License v3.0
An editor and viewer for Portable Tak Notation
Home Page: https://ptn.ninja
License: GNU Affero General Public License v3.0
After making some changes and then undoing them, further changes and undos sometimes don't work.
It seems that if you start at the end of the game and navigate backwards through the PTN and then trim to the current board then the active player will swap - e.g. for a given position it’ll go from Black being active to White being the active player.
I think both the moves pane on the left and the notes pane on the right are strong tools. Right now I don't use the notes because then I cannot see the moves anymore. Instead I write down notes somewhere else. If they where both visible at the same time, I think that would be great!
Test to verify this is worth it.
I don't want to turn this into a playtak.com competitor, but I want to give it simple peer-to-peer networking so you can share a link with someone and play a private, non-timed game.
I'd also like to allow users to play existing bots.
Describe the bug
When resizing the browser window to the minimum possible height and then opening it up to a more usable height, the board is broken.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Changing the height to 0 and back should not change how the board looks like.
Desktop:
Microsoft Windows 10 Pro 10.0.19042 N/A Build 19042
Played pieces aren't showing up on the board although road highlighting confirms that they are actually there. Same problem on both Safari and Chrome, latest versions of everything. Clearing cookies didn't help.
playtak.com's games now have a TimeControl tag to indicate timer information. This breaks the site. You can maybe ignore unknown tags?
I find myself really missing (from the ptnviewer fiddle) the ability to step through the game in read-only mode with the notation side-by-side with the board. It's useful to be able to see move numbers and notation when commenting on a game or reading a game that is commented elsewhere.
I'm having trouble reproducing this, and it may be a browser rendering bug, but sometimes when switching from side-by-side layout to single column, the board doesn't become translucent.
Describe the bug
The embed modal is empty after refreshing the page.
To Reproduce
Steps to reproduce the behavior:
share->embed
F5
Expected behavior
After pressing F5
the modal should either look the same as before or not open at all.
Desktop:
Microsoft Windows 10 Pro 10.0.19042 N/A Build 19042
Also:
3.c3e6a041.js:1 Error: Cannot find module './en-gb/about.md'
at 3.c3e6a041.js:1
3.c3e6a041.js:1 Error: Cannot find module './en-gb/usage.md'
at 3.c3e6a041.js:1
localStorage
and could reproduce the problem on an empty 5x5 board as wellThis must be scroll-target="#notes-scroll-area > .scroll"
PTN-Ninja/src/components/drawers/PTN.vue
Line 12 in 24a4c2c
This must be scroll-target="#ptn-scroll-area > .scroll"
Useful for when using ptn.ninja links for async play (e.g. play-by-email, play-by-IM).
It would be great to show the remaining piece count and/or the flat score to evaluate a possible flat victory without having to count stones
Description
The reload required to get an updated version of the code base uses the local storage copy of the PTN rather than the PTN that should have just overwritten it.
Repro Steps:
Actual Behavior
The old PTN is displayed on the board and appears to be in local storage.
Expected Behavior
After reload, the new PTN should be displayed on the board and be saved in local storage.
Environment
The embedded <iFrame> that I'm using for my blog appear blank when using Chrome on iOS.
It would be nice when in play mode to be able to see the current count of each player's remaining pieces, as this is often relevant to the game, making it clear if one player can start forcing a flat win or not.
Counting the pieces on the board is annoying and most people (especially me) are bad at doing it.
I have found a bug where the editor is corrupted due to weird alternate line stuff. I have two pictures. To reproduce: Play a few moves in a PTN game (or find an old game). Find a position where white or black captures a piece the turn after which it is placed. (e.g. 4. d4 e4<). Then use the navigation arrows to wind back to the placement and replace it with a noble (I know this works with a wall and am assuming it will with a capstone). Then play one more move with the color that would have done the capture. (unknown atm if this will reproduce will more moves, but fairly likely) Then go to the editor and note that the alternative lines are off and incorrect. If you edit anything - even the name of a player it should start complaining about illegal moves.
Ideally, I'd like to produce a short duplication video, but I don't have the time atm, so I'm hoping this will be sufficient.
I'm not sure if this is a PTN ninja issue or a playtak issue or both, but when I click the ptn.ninja link on a given game from the history page of playtak on my iPhone it brings me to a blank game, rather than loading in the game on file.
The bottom left of a chessboard (a1) is always black, but you consistently use white. Is this intentional? Or can you change it (or leave it to be an option?).
Describe the bug
When you try to enter TPS mode while creating a new game, it enters TPS mode on the previous game and creates a new game where you are not in TPS mode. This then lets you break the previous game completely since you can enter TPS mode while there are also existing plies on the board.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I except to enter TPS mode for the new game, not the previous one.
Screenshots
Desktop (please complete the following information):
Additional context
Discord message: https://discord.com/channels/176389490762448897/361023655465058307/1001873075425517618
I will look into automatically marking Tak and Tinuë, as well as detecting a game end.
In navigating this game, I can navigate to the end, but then have an issue navigating back to the beginning of the timeline.
Prompt for board size when starting a new game.
I'm having trouble reproducing this one, but sometimes when I undo, it seems I can't go all the way to the original state, just one change before it.
Can we get a function to Trim to the current ply, also getting rid of all the successive moves, boiling the board down to a specific TPS?
I tried opening ptn.ninja with the new changes on Safari on iOS, but saw nothing.
Describe the bug
The embed preview is
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Desktop:
Microsoft Windows 10 Pro 10.0.19042 N/A Build 19042
playtak-generated PTNs have a [Clock]
section which ptn.ninja says is invalid. An example line is [Clock "10:0 +15"]
for a game with 10 minutes +15s add
This is especially annoying since the US Tak Open is going on right now and ptn.ninja is really nice to use for sharing games
I tried navigating to a game from the play tak history viewer using the PTN ninja link, and it wasn't working. (Chrome - Mac OS X)
Describe the bug
The ply for the top of an alternate branch is showing instead of the appropriate one.
To Reproduce
Create a game with multiple branches and steps of those branches.
Manually rewind to the fork
Manually take a previously explored alternate.
In the top, where the plies are, the previous branches' ply is listed instead of the correct one.
Is your feature request related to a problem? Please describe.
On a smartphone screen, the unplayed pieces take up valuable horizontal space, so the board is smaller than it needs to be.
Describe the solution you'd like
Adding an option (or maybe even making it the default on small screens) to move the unplayed pieces somewhere else than next to the board would help. E.g. rotating them 90° and putting them above and/or below the board, where there's plenty of unused space.
Describe alternatives you've considered
There's already an option to hide unplayed pieces entirely, but that's not an ideal solution imo.
Additional context
Here's a screenshot to clarify what I mean:
I like to always have the game notation open when I study a game, so I can always have my bearings straight, but currently it's impossible to navigate through moves easily when the game notation is open—clicking on each move individually with the cursor is rather cumbersome. Even a simple forward and backward arrow functionality from the notation screen would be fine, but I think it also might be useful to be able to view the notation in a mode where it is not opened in text-editing mode. As I said, I always want to be able to see the notation, but seldom do I want to edit it. Thank you for your consideration.
Under both Linux and Windows 10. Everything works fine under Chrome on the same computer, and it all worked fine on previous versions of Firefox. I'm sure this is related to the recent release of Firefox Quantum.
It's slow and unintuitive.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.