Add debug statement
This commit is contained in:
@@ -50,6 +50,7 @@ class GameController:
|
||||
def stop_game(self):
|
||||
try :
|
||||
game_data = self._game_service.export_game()
|
||||
print(game_data)
|
||||
self._broker_service.publish("/customer/game/data", game_data, 2)
|
||||
self._game_service.stop()
|
||||
except Exception as ex:
|
||||
|
||||
@@ -14,6 +14,7 @@ class Game:
|
||||
self._increments = increment
|
||||
self.moves = []
|
||||
self._base_fen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"
|
||||
self.add_move(self._base_fen)
|
||||
|
||||
def add_move(self, fen : str):
|
||||
self.moves.append(fen)
|
||||
|
||||
Reference in New Issue
Block a user