rodpolako / Chess-PGN-Trainer

Online tool that opens chess PGN files and allows the user to practice the moves. This tool is to help with drilling, as efficiently as possible, a set group of puzzles/games in an appropriately configured PGN file. Once the set is complete, the player sees how many errors they made as well as how long the set took to complete.
MIT License
4 stars 1 forks source link

Move indicator incorrect on first move of first puzzle when flipped and opposite #2

Closed rodpolako closed 4 months ago

rodpolako commented 4 months ago

When running with OppositeSide=1 & Flipped=1 the very first move of the first puzzle in a set, whether running randomised or not, has the wrong "[White/Black] to Move" under the board. After that all is as it should be.

rodpolako commented 4 months ago

Moved the indicator function on load of the puzzle to fire after the parsing of the play features. This resolved the issue.