fix ai undo
This commit is contained in:
@@ -68,6 +68,12 @@ public class GameSimulation extends GameAdaptator {
|
||||
sendCommand(new NewGameCommand());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPlayerTurn(Color color, boolean undone) {
|
||||
if (undone)
|
||||
sendCommand(new UndoCommand());
|
||||
}
|
||||
|
||||
public CommandExecutor getCommandExecutor() {
|
||||
return simulation;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user