save before pull

This commit is contained in:
HP 2025-05-16 10:28:30 +02:00
parent e005026904
commit 29761baa96
1 changed files with 0 additions and 8 deletions

View File

@ -460,14 +460,6 @@ public ArrayList<int[]> computeLegalMoves(Piece piece) {
if (y == startRow && isEmpty(x, twoStepsY)) {
moves.add(new int[]{x, twoStepsY});
}
if (nextY == 7 ){
setPiece(false , PieceType.Queen, x,nextY);
pieces.remove(piece);
}
if (nextY==0 ){
setPiece(true , PieceType.Queen, x,nextY);
pieces.remove(piece);
}
}
// Diagonal capture