diff --git a/GameLogic.py b/GameLogic.py index 853c095..4542005 100644 --- a/GameLogic.py +++ b/GameLogic.py @@ -1,3 +1,5 @@ +from datetime import datetime, time + from GameMap import * from Player import * @@ -9,7 +11,6 @@ class GameLogic(): self.playerList = playerList self.winRowLength = winRowLength self.individualMoves = individualMoves - self.time = 0 # in seconds self.score = 0 self.wait_for_input() @@ -24,11 +25,11 @@ class GameLogic(): pass def get_time(self): - return self.time + return str(datetime.now() - self.startTime) def reset_time(self): - self.time = 0 + self.startTime = datetime.now() def get_score(self):