This commit is contained in:
Jonas Zeunert
2022-09-01 02:50:38 +02:00
parent d4026f1201
commit 90428b39c7

View File

@@ -146,6 +146,6 @@ class GameState:
for player in self.playerList: for player in self.playerList:
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.points))
file.close() file.close()
self.highscore = player.score self.highscore = player.points