all conditions for castling are ok for white king
This commit is contained in:
parent
d37206f77c
commit
3fb0209a63
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue