castling modif

Merge branch 'master' of
https://gitarero.ecam.fr/louise.berteloot/OOP_2A5_Project.git
This commit is contained in:
Louise BERTELOOT 2025-05-19 19:37:32 +02:00
parent 2a24efa355
commit 1e13672235
1 changed files with 0 additions and 1 deletions

View File

@ -192,7 +192,6 @@ public class Board {
//store for castling //store for castling
int originalX = selectedPiece.getX(); int originalX = selectedPiece.getX();
int originalY = selectedPiece.getY();
// detects castling // detects castling
boolean isCastling = selectedPiece.getType() == PieceType.King && Math.abs(x - originalX) == 2; boolean isCastling = selectedPiece.getType() == PieceType.King && Math.abs(x - originalX) == 2;