maybe almost finished but doesnt work

This commit is contained in:
hugomanipoud2 2025-05-22 20:01:35 +02:00
parent 8ded4954b8
commit 425b2696cd
1 changed files with 1 additions and 1 deletions

View File

@ -37,9 +37,9 @@ public class Move {
needPieceDeletion(toX, toY); //if a piece is at arrival coord, remove the piece
}
specialMoves.pawnPromotion(movingPiece, toY);
specialMoves.setCastlingVariable(movingPiece, toX, toY);
movingPiece.setX(toX); // change coordinates to the new coordinate
movingPiece.setY(toY);
specialMoves.setCastlingVariable(movingPiece);
board.setTurnNb(turnNb + 1);
}
break;