Fix: improve round management, betting validation and game engine test coverage #290

Merged
j.kropff merged 13 commits from fix/game-turn-and-action-bugs into main 2026-04-19 20:31:45 +02:00
Showing only changes of commit 03daf9c3b8 - Show all commits
@@ -633,13 +633,14 @@ public class CasinoGameController {
*/ */
private void updateTaskbar(GameState s) { private void updateTaskbar(GameState s) {
TaskbarController controller = resolveTaskbarController(); TaskbarController controller = resolveTaskbarController();
if (controller != null) { if (controller == null || myPlayerId == null) {
if (gameService != null && myPlayerId != null) { return;
}
if (gameService != null) {
controller.setGameService(gameService, myPlayerId); controller.setGameService(gameService, myPlayerId);
} }
controller.update(s, myPlayerId); controller.update(s, myPlayerId);
} }
}
/** /**
* Update the opponent player slots based on the list of players in the game state. This method * Update the opponent player slots based on the list of players in the game state. This method