Files
3DChess/app/src/main/java/chess/ai/actions/AIActionCastling.java
Persson-dev 810a0f2159
All checks were successful
Linux arm64 / Build (push) Successful in 41s
feat: add ai castling (Fixes #4)
2025-05-06 17:15:55 +02:00

21 lines
499 B
Java

package chess.ai.actions;
import chess.controller.CommandExecutor;
import chess.controller.commands.CastlingCommand;
public class AIActionCastling extends AIAction{
private final boolean bigCastling;
public AIActionCastling(CommandExecutor commandExecutor, boolean bigCastling) {
super(commandExecutor);
this.bigCastling = bigCastling;
}
@Override
public void applyAction(CommandExecutor commandExecutor) {
sendCommand(new CastlingCommand(this.bigCastling), commandExecutor);
}
}