Spikes, better gameHandler, map width and height computed automatically & big peanut hard map

This commit is contained in:
2026-10-10 16:21:11 +02:00
parent 14a39b7154
commit 17f00ebca2
12 changed files with 131 additions and 37 deletions
+10 -6
View File
@@ -1,12 +1,14 @@
from abc import abstractmethod
from game.game import Game
class GameHandler:
def __init__(self, game: Game):
self.game = game
self.game.set_waiting_for_input_callback(self.on_input_request)
self.game.set_position_update_callback(self.on_position_update)
def __init__(self):
pass
@abstractmethod
def run(self) -> None:
pass
@abstractmethod
def on_position_update(self) -> None:
@@ -14,4 +16,6 @@ class GameHandler:
@abstractmethod
def on_input_request(self) -> str:
pass
pass