This commit is contained in:
Jonas Zeunert
2022-09-01 02:05:38 +02:00
parent 3d044940c3
commit 934cb56360

View File

@@ -125,5 +125,5 @@ class GameState:
for player in self.players: for player in self.players:
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.writelines([str(player.score)])
file.close() file.close()