This commit is contained in:
Jonas Zeunert
2022-09-01 00:53:29 +02:00
parent 326272289d
commit b54f9e4261
2 changed files with 1 additions and 1 deletions

View File

@@ -41,7 +41,6 @@ class GameState:
self.nextPlayer()
logging.info("Game Started")
def endGame(self):
self.writeHighscore()
self.players = None

View File

@@ -33,6 +33,7 @@ class GameFactory:
def getHighScore(self):
with open(config.HIGHSCORE_FILE, "w+") as file:
score_str = file.readline()
file.close()
if score_str == "":
score_str = "0"