fix ai undo

This commit is contained in:
2025-04-22 14:16:38 +02:00
parent 3a34415547
commit 5c4797c451

View File

@@ -68,6 +68,12 @@ public class GameSimulation extends GameAdaptator {
sendCommand(new NewGameCommand()); sendCommand(new NewGameCommand());
} }
@Override
public void onPlayerTurn(Color color, boolean undone) {
if (undone)
sendCommand(new UndoCommand());
}
public CommandExecutor getCommandExecutor() { public CommandExecutor getCommandExecutor() {
return simulation; return simulation;
} }