Spikes, better gameHandler, map width and height computed automatically & big peanut hard map
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user