This commit is contained in:
Jonas Zeunert
2022-09-01 02:04:28 +02:00
parent 050a3161e4
commit 3d044940c3

View File

@@ -126,5 +126,4 @@ class GameState:
if player.hasHighscore: if player.hasHighscore:
with open(config.HIGHSCORE_FILE, "w+") as file: with open(config.HIGHSCORE_FILE, "w+") as file:
file.write(str(player.score)) file.write(str(player.score))
file.flush()
file.close() file.close()