dudu
This commit is contained in:
@@ -41,7 +41,6 @@ class GameState:
|
|||||||
self.nextPlayer()
|
self.nextPlayer()
|
||||||
logging.info("Game Started")
|
logging.info("Game Started")
|
||||||
|
|
||||||
|
|
||||||
def endGame(self):
|
def endGame(self):
|
||||||
self.writeHighscore()
|
self.writeHighscore()
|
||||||
self.players = None
|
self.players = None
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ class GameFactory:
|
|||||||
def getHighScore(self):
|
def getHighScore(self):
|
||||||
with open(config.HIGHSCORE_FILE, "w+") as file:
|
with open(config.HIGHSCORE_FILE, "w+") as file:
|
||||||
score_str = file.readline()
|
score_str = file.readline()
|
||||||
|
file.close()
|
||||||
|
|
||||||
if score_str == "":
|
if score_str == "":
|
||||||
score_str = "0"
|
score_str = "0"
|
||||||
|
|||||||
Reference in New Issue
Block a user