Skip to content

Conversation

@dudecon
Copy link

@dudecon dudecon commented Jul 25, 2023

Implements #204 with a new manual undo button at the top of the button UI
Also implements #202 human vs human with thanks to @harrisi
Both features are implemented together since undo rolls back 1 move in HvH, and 2 moves in HvB (the bot's last move, and the human's last move).
Currently does not refund the thinkDuration spent calculating moves, since bots can cache calculation results. If refund is desired, we should probably store the think duration in the Move objects.

harrisi and others added 4 commits July 22, 2023 16:06
To-Do:
Update board highlighting
Debug both players able to move on undo, resulting in possible illegal moves
Debug multi-undo soft lock when first player is bot.
Fixed board highlighting
Fixed multi-undo soft lock when first player is bot.
Fixed both human players able to move on undo
@dudecon dudecon changed the title Manual Move Undo and Human vs Human Mode Manual Move Undo and Human vs Human Mode: See #202 #204 Jul 25, 2023
VitorA29 added a commit to VitorA29/Chess-Challenge that referenced this pull request Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants