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