This commit is contained in:
Jonas Zeunert
2022-08-31 14:52:39 +02:00
parent 029af11f22
commit db54f0f95c

View File

@@ -31,7 +31,7 @@ class GameFactory:
PLAYER_LAMPS.activateNext() PLAYER_LAMPS.activateNext()
def getHighScore(self): def getHighScore(self):
with open(config.HIGHSCORE_FILE, "r+") as file: with open(config.HIGHSCORE_FILE, "w+") as file:
score_str = file.readline() score_str = file.readline()
if score_str == "": if score_str == "":