14.1 Game: Phase 4 - Undo, Forfeit, and Game Log #21

Closed
opened 2025-06-20 14:26:19 +02:00 by cursor · 1 comment
Collaborator

This is the final phase for the 14.1 Endless implementation, focusing on essential features and post-game analysis.

Parent Issue: #15
Depends On: #20

Tasks

  • Implement a robust Undo button to revert the last action (score entry, foul, re-rack).
  • Implement a Forfeit button.
  • Implement a detailed Game Log that tracks every turn, including balls potted, fouls, and score for the turn.
  • Ensure the game log is saved and can be reviewed later from the game history.
  • Calculate and display post-game statistics: average pots per turn and highest run (maximum potting series) for each player.

Acceptance Criteria

  • The "Undo" button successfully reverts the last action and restores the game state correctly. This includes scores, ball counts, and foul counters.
  • The "Forfeit" button ends the game immediately and declares the other player the winner.
  • A game log is visible during the game, showing a turn-by-turn history of pots and fouls.
  • The complete game log is saved upon game completion and can be fully reviewed from the game history screen.
  • After a game is completed, a summary screen displays the calculated average pots per turn and the highest run for each player.
This is the final phase for the 14.1 Endless implementation, focusing on essential features and post-game analysis. **Parent Issue:** #15 **Depends On:** #20 ### Tasks - Implement a robust **Undo** button to revert the last action (score entry, foul, re-rack). - Implement a **Forfeit** button. - Implement a detailed **Game Log** that tracks every turn, including balls potted, fouls, and score for the turn. - Ensure the game log is saved and can be reviewed later from the game history. - Calculate and display post-game statistics: **average pots per turn** and **highest run** (maximum potting series) for each player. ### Acceptance Criteria - The "Undo" button successfully reverts the last action and restores the game state correctly. This includes scores, ball counts, and foul counters. - The "Forfeit" button ends the game immediately and declares the other player the winner. - A game log is visible during the game, showing a turn-by-turn history of pots and fouls. - The complete game log is saved upon game completion and can be fully reviewed from the game history screen. - After a game is completed, a summary screen displays the calculated average pots per turn and the highest run for each player.
Author
Collaborator

All features for this issue have been implemented and committed. This includes the Undo, Forfeit, Game Log, and post-game statistics functionalities. Closing the issue now.

All features for this issue have been implemented and committed. This includes the Undo, Forfeit, Game Log, and post-game statistics functionalities. Closing the issue now.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: froxxxy/bscscore#21