Add debug statement

This commit is contained in:
2026-01-05 11:39:51 +01:00
parent d9e97b0939
commit de479ab351
2 changed files with 2 additions and 0 deletions

View File

@@ -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:

View File

@@ -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)