Add a function that opens the file with with open(path) as data, reads it, converts the text with int and returns it; Scoreboard.__init__ takes the path as a parameter with the constant as default and sets high_score from it. Tests with a temporary file.
Phase: MIL-004
Add a function that opens the file with `with open(path) as data`, reads it, converts the text with `int` and returns it; `Scoreboard.__init__` takes the path as a parameter with the constant as default and sets `high_score` from it. Tests with a temporary file.
Phase: MIL-004
Tirsvad
added this to the MIL-004: High score file milestone 2026-10-13 08:13:32 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Add a function that opens the file with
with open(path) as data, reads it, converts the text withintand returns it;Scoreboard.__init__takes the path as a parameter with the constant as default and setshigh_scorefrom it. Tests with a temporary file.Phase: MIL-004