Write the high score to the file #25

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

In Scoreboard.reset, when a new high score is reached, open the file with with open(path, mode="w") as data and write the number as text. Tests check the file content after a higher, equal and lower score.

Phase: MIL-004

In `Scoreboard.reset`, when a new high score is reached, open the file with `with open(path, mode="w") as data` and write the number as text. Tests check the file content after a higher, equal and lower score. Phase: MIL-004
Tirsvad added this to the MIL-004: High score file milestone 2026-10-13 08:13:33 +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#25