-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Overview
When starting a new game, users should have the option between playing a normal game or a timed game. Upon selecting a timed game, users should be able to select the time each player starts with and how many seconds are added to the time when a player finishes their turn (if any). There will be a max of time of 99:59 per player and any additions to the time shall not go above this value.
When a game is being played, the timer will start counting down for the player whose turn it is. The timer will stop for that player when the button is pressed to submit a move and will resume for the next player once the server registers the move and prompts them to update their opponent's position when playing with two different boards or once the server prompts the next player to make their move when in local play. The time shall be kept on the microcontroller and shall sync with the server when a player submits their move.
Checklist
- LCD displays each player's time remaining when playing a timed game
- Add thread to update times remaining and update LCD every second
- Add times to the API call for submitting a move
- Add times to the API call for receiving a move
- Time remaining for the opponent should be updated when receiving the opponent's move in two-board play