dudu
This commit is contained in:
@@ -41,7 +41,6 @@ class GameState:
|
||||
self.nextPlayer()
|
||||
logging.info("Game Started")
|
||||
|
||||
|
||||
def endGame(self):
|
||||
self.writeHighscore()
|
||||
self.players = None
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user