14.1 Game: Phase 3 - Comprehensive Foul System #20

Closed
opened 2025-06-20 14:26:11 +02:00 by cursor · 0 comments
Collaborator

This is the third phase for the 14.1 Endless implementation, focusing on the foul system.

Parent Issue: #15
Depends On: #19

Tasks

  • Implement buttons/logic for a Standard Foul (-1 point) and a Break Foul (-2 points).
  • Implement tracking for consecutive fouls for each player.
  • Display a visual warning when a player has 2 consecutive fouls.
  • Implement the 3-foul penalty: deduct 15 additional points and reset the consecutive foul counter.
  • The counter must also reset after any legal (non-foul) turn.

Acceptance Criteria

  • A button exists to apply a -1 point standard foul penalty to the current player.
  • A button exists to apply a -2 point break foul penalty.
  • A counter for consecutive fouls is visible for each player and increments correctly.
  • A visual warning is shown when a player's consecutive foul count reaches 2.
  • When a player commits a 3rd consecutive foul, a total of 16 points are deducted from their score (1 for the standard foul, 15 for the penalty).
  • The consecutive foul counter resets to 0 after the 3-foul penalty is applied or after a player completes a turn without a foul.

All tasks are implemented. The foul system is now functional.

This is the third phase for the 14.1 Endless implementation, focusing on the foul system. **Parent Issue:** #15 **Depends On:** #19 ### Tasks - [x] Implement buttons/logic for a **Standard Foul** (-1 point) and a **Break Foul** (-2 points). - [x] Implement tracking for **consecutive fouls** for each player. - [x] Display a visual warning when a player has 2 consecutive fouls. - [x] Implement the **3-foul penalty**: deduct 15 additional points and reset the consecutive foul counter. - [x] The counter must also reset after any legal (non-foul) turn. ### Acceptance Criteria - [x] A button exists to apply a -1 point standard foul penalty to the current player. - [x] A button exists to apply a -2 point break foul penalty. - [x] A counter for consecutive fouls is visible for each player and increments correctly. - [x] A visual warning is shown when a player's consecutive foul count reaches 2. - [x] When a player commits a 3rd consecutive foul, a total of 16 points are deducted from their score (1 for the standard foul, 15 for the penalty). - [x] The consecutive foul counter resets to 0 after the 3-foul penalty is applied or after a player completes a turn without a foul. All tasks are implemented. The foul system is now functional.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: froxxxy/bscscore#20