This is a proposal how to implement guess the move, described in issue #2
I added an example file puzzle.html which uses the same pgn as edit.html
I am very happy about any feedback and ready to fix issues if there are any with this implementation.
If this change is fine, further enhancements could be:
giving feedback (hints to user) in case of wrong moves
in case of variations in pgn, there could be a random mechanism to choose which variation to play for the opponents side. This feature is particularly interesting if you want to use "puzzle mode" for opening training. On the other hand it might make sense to keep this logic outside of this package and implement it somewhere else.
This is a proposal how to implement guess the move, described in issue #2 I added an example file puzzle.html which uses the same pgn as edit.html
I am very happy about any feedback and ready to fix issues if there are any with this implementation. If this change is fine, further enhancements could be: