doppelmann
This commit is contained in:
@@ -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)])
|
||||||
|
|||||||
Reference in New Issue
Block a user