all conditions for castling are ok for white king

This commit is contained in:
hugomanipoud2 2025-05-22 19:26:52 +02:00
parent d37206f77c
commit 3fb0209a63
1 changed files with 4 additions and 0 deletions

View File

@ -371,6 +371,10 @@ public boolean isKingMoveValid(int x, int y, boolean color, int selectX, int se
return specialMoves.shortCastle(myPiece);
}
}else {
if ((selectX == x - 3 && selectY == y)) {
return specialMoves.shortCastle(myPiece);
}
}
return false;
}