From 446ffba5548623497b837740f187a4839013a217 Mon Sep 17 00:00:00 2001 From: oto Date: Mon, 15 Aug 2022 07:28:17 +0300 Subject: [PATCH] Pulled out code into Timer.py Made a separate class instead of keeping it in GameLogic. --- GameLogic.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/GameLogic.py b/GameLogic.py index 6f5677a..fcd36cd 100644 --- a/GameLogic.py +++ b/GameLogic.py @@ -1,7 +1,6 @@ -from datetime import datetime, time - from GameMap import * from Player import * +from Timer import * class GameLogic(): @@ -44,14 +43,3 @@ class GameLogic(): else: return False return True - - def get_time(self): - return str(datetime.now() - self.startTime) - - - def reset_time(self): - self.startTime = datetime.now() - - - def get_score(self): - return self.score \ No newline at end of file