created class Check

This commit is contained in:
mimie 2025-05-16 10:34:00 +02:00
parent 31fbc1debd
commit 230cfa7fc1
2 changed files with 11 additions and 0 deletions

View File

@ -657,6 +657,12 @@ public class Board {
}
nbOccupied = 0;
}
/*altPieces = pieces; //create a copy of pieces that we will modify to check if the movement leaves the king in check
if (highlight) {
altPieces.get(whatPiece(this.x,this.y)).setX(x);
altPieces.get(whatPiece(this.x,this.y)).setY(y);
}*/
}
if (pieces.get(indexPieceSelect).getType() == PieceType.Knight) { //highlight for knights

5
src/backend/Check.java Normal file
View File

@ -0,0 +1,5 @@
package backend;
public class Check {
}