This commit is contained in:
Jonas Zeunert
2022-09-01 02:16:29 +02:00
parent eb9722a4c3
commit 9582405bb0

View File

@@ -127,6 +127,6 @@ class GameState:
for player in self.playerList:
if player.hasHighscore:
with open(config.HIGHSCORE_FILE, "w+") as file:
file.writelines([str(player.score)])
file.write(str(player.score))
file.close()
self.highscore = player.score