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

Timed Game (Chess Clock) #10

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

Timed Game (Chess Clock) #10

Notdutra opened this issue Nov 12, 2024 · 0 comments

Comments

@Notdutra
Copy link
Owner

Description
Add a chess clock to limit the time each player has for their moves. Each player’s clock should count down when it is their turn, and the game should end if a player’s time runs out.

Acceptance Criteria

  • Individual Clocks: Display separate countdown clocks for both white and black players.
  • Switch on Move: Clocks switch automatically when a move is completed.
  • Time Expiry: End the game with a loss for the player whose time reaches zero.

Tasks

  • Add timers for each player that count down during their respective turns.
  • Implement logic to switch active clocks after each move.
  • Trigger game-over conditions when a player’s time expires.

Additional Notes

  • Consider adding customizable time settings for different time control options (e.g., blitz, rapid, classical).
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