maybe almost finished but doesnt work
This commit is contained in:
parent
8ded4954b8
commit
425b2696cd
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue