Fix clock, I guess ?

This commit is contained in:
2025-12-31 17:11:43 +01:00
parent f079ba49e9
commit 9416f2bd84
3 changed files with 8 additions and 9 deletions

View File

@@ -45,10 +45,7 @@ class ClockService:
return clock
def __tick(self, formatted_time : str) -> None:
if self.white_clock.is_running() :
self.__update_screen(f"W {formatted_time} \n B {self.black_clock.clock_to_str()}")
elif self.black_clock.is_running() :
self.__update_screen(f"W {self.white_clock.clock_to_str()} \n B {formatted_time}")
self.__update_screen(f"W {self.white_clock.clock_to_str()} \n B {self.black_clock.clock_to_str()}")
def __terminate(self) -> None:
self.__update_screen("Time is over !")

View File

@@ -21,6 +21,7 @@ class GameService:
def make_move(self) -> tuple[bytes, str] | None:
try :
self.clock_service.switch()
return self.detection_service.analyze_single_frame()
except Exception as e:
print(e)