bruh i solved castling without using IA im so hyped rn
This commit is contained in:
parent
425b2696cd
commit
418d32a7d3
|
|
@ -367,7 +367,7 @@ public boolean isKingMoveValid(int x, int y, boolean color, int selectX, int se
|
|||
if (selectX == x + 1 && selectY == y) {
|
||||
return checkColor(x, y, color);
|
||||
}
|
||||
if (color == true) {
|
||||
if (color == true) { // for white king
|
||||
if ((selectX == x - 3 && selectY == y)) {
|
||||
return specialMoves.shortCastle(myPiece);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue