from services.clock_service import ClockService from services.detection_service import DetectionService class GameService: detection_service : DetectionService clock_service : ClockService def __init__(self): self.detection_service = DetectionService() self.clock_service = ClockService() def start(self, time_control : int, increment : int ) -> None: self.clock_service.start(time_control, increment) self.clock_service.set_on_terminated(self.stop) def stop(self): self.clock_service.stop() def make_move(self) -> None: fen = self.detection_service.analyze_single_frame() print(fen)