-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GoTo specific move number #482
Comments
You are right, there is no API to do something like that. I checked the API again, at the moment, you can only do manual moves from one position to the next. So let me write down the requirement: The user should be able to jump to any position in the game denoted by the move number. The move number is denoted by the array index of the half moves done. In the game What about variants? We cannot say which move number will be which move in which variant (at least not so simple). For the moment, this would only work for the main line. |
There is a similar functionality already implemented, see #171 The ideas from that implementation could be moved. Requirements would be:
|
Missing: all special cases, marking the move in the HTML
Did a quick hack, there are many things missing (yet). But demonstrates that jumping to a move is not a big deal .. |
Discussed in #481
Originally posted by RasmusRow December 17, 2023
Hi,
I can't seem to figure out if it's possible to programmatically forward/rewind the game to a specific move number.
Just like the notation already provided in the library, but I'd like to be able to implement some custom functionality that allows to me to click a button somewhere on the page that triggers the same event as when I click on a move number in the notations.
I hope it makes sense :)
Thank you for your work!
The text was updated successfully, but these errors were encountered: