if king or rook moves the castling doesnt work !
This commit is contained in:
parent
3fb0209a63
commit
8ded4954b8
|
|
@ -39,6 +39,7 @@ public class Move {
|
||||||
specialMoves.pawnPromotion(movingPiece, toY);
|
specialMoves.pawnPromotion(movingPiece, toY);
|
||||||
movingPiece.setX(toX); // change coordinates to the new coordinate
|
movingPiece.setX(toX); // change coordinates to the new coordinate
|
||||||
movingPiece.setY(toY);
|
movingPiece.setY(toY);
|
||||||
|
specialMoves.setCastlingVariable(movingPiece);
|
||||||
board.setTurnNb(turnNb + 1);
|
board.setTurnNb(turnNb + 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue