bruh i solved castling without using IA im so hyped rn

This commit is contained in:
hugomanipoud2 2025-05-22 20:13:07 +02:00
parent 425b2696cd
commit 418d32a7d3
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ public boolean isKingMoveValid(int x, int y, boolean color, int selectX, int se
if (selectX == x + 1 && selectY == y) { if (selectX == x + 1 && selectY == y) {
return checkColor(x, y, color); return checkColor(x, y, color);
} }
if (color == true) { if (color == true) { // for white king
if ((selectX == x - 3 && selectY == y)) { if ((selectX == x - 3 && selectY == y)) {
return specialMoves.shortCastle(myPiece); return specialMoves.shortCastle(myPiece);