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

Undo/Redo Move Functionality #9

Open
3 tasks
Notdutra opened this issue Nov 12, 2024 · 0 comments
Open
3 tasks

Undo/Redo Move Functionality #9

Notdutra opened this issue Nov 12, 2024 · 0 comments

Comments

@Notdutra
Copy link
Owner

Description
Allow players to undo their last move or redo a previously undone move. This feature is useful for casual play, testing, and learning scenarios.

Acceptance Criteria

  • Undo Capability: Players can undo their most recent move and return to the previous game state.
  • Redo Capability: Players can redo moves that were undone if no new moves have been made since.
  • Move History Sync: Move history display should update accordingly with each undo or redo.

Tasks

  • Implement an undo function that reverts the game state to the previous move.
  • Implement a redo function to reapply previously undone moves.
  • Update the move history and board state display with each undo/redo action.

Additional Notes

  • Ensure that undo/redo does not interfere with game logic, especially for special moves (e.g., castling, En Passant).
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

No branches or pull requests

1 participant