Replace game_over with reset in the Scoreboard #18

Closed
opened 2026-10-13 08:13:18 +02:00 by Tirsvad · 0 comments
Owner

Remove Scoreboard.game_over and its test. Add Scoreboard.reset: when the score is higher than high_score, the high score becomes the score; the score becomes 0; update_scoreboard is called. Tests: higher, equal and lower score.

Phase: MIL-003

Remove `Scoreboard.game_over` and its test. Add `Scoreboard.reset`: when the score is higher than `high_score`, the high score becomes the score; the score becomes 0; `update_scoreboard` is called. Tests: higher, equal and lower score. Phase: MIL-003
Tirsvad added this to the MIL-003: Continuous play and high score milestone 2026-10-13 08:13:18 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Tirsvad-Udemy-100-days-of-code/024-snake#18