doppelmann

This commit is contained in:
Jonas Zeunert
2022-09-01 02:14:51 +02:00
parent 833b62507d
commit 81d84ec507

View File

@@ -124,7 +124,7 @@ class GameState:
self._currentPlayer = player self._currentPlayer = player
def writeHighscore(self): def writeHighscore(self):
for player in self.playersList: 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.writelines([str(player.score)]) file.writelines([str(player.score)])