short castle done and working, finishing long castle
This commit is contained in:
parent
2fa708862d
commit
925681e178
|
|
@ -369,14 +369,14 @@ public boolean isKingMoveValid(int x, int y, boolean color, int selectX, int se
|
|||
}
|
||||
if (color == true) { // for white king
|
||||
if ((selectX == x - 3 && selectY == y)) {
|
||||
return specialMoves.shortCastleHighlight(myPiece);
|
||||
return specialMoves.wShortCastleHighlight(myPiece);
|
||||
}
|
||||
else if ((selectX == x + 4 && selectY == y)) {
|
||||
return specialMoves.wLongCastleHighlight(myPiece);
|
||||
}
|
||||
// else if ((selectX == x + 4 && selectY == y)) {
|
||||
// return specialMoves.longCastle(myPiece);
|
||||
// }
|
||||
}else {
|
||||
if ((selectX == x - 3 && selectY == y)) {
|
||||
return specialMoves.shortCastleHighlight(myPiece);
|
||||
return specialMoves.bShortCastleHighlight(myPiece);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue