input not correct, now works
This commit is contained in:
parent
99c1f81fee
commit
63c51f3d56
|
|
@ -36,7 +36,7 @@ public class Move {
|
|||
if (board.isAPieceThere(toX, toY)){//checking if a piece is at the arrival coordinates
|
||||
needPieceDeletion(toX, toY); //if a piece is at arrival coord, remove the piece
|
||||
}
|
||||
specialMoves.pawnPromotion(movingPiece);
|
||||
specialMoves.pawnPromotion(movingPiece, toY);
|
||||
movingPiece.setX(toX); // change coordinates to the new coordinate
|
||||
movingPiece.setY(toY);
|
||||
board.setTurnNb(turnNb + 1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue