Skip to content
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

Manual Move Undo and Human vs Human Mode: See #202 #204 #305

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

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