check a little bit

Merge branch 'master' of
https://gitarero.ecam.fr/aurele.wittke/OOP_1A5_Project.git
This commit is contained in:
mimie 2025-05-16 11:31:35 +02:00
parent 5e3c640ff8
commit 03ea5b41eb
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,8 @@ public class Check {
public boolean kingCheck() { public boolean kingCheck() {
altPieces.get(whatPiece(this.x,this.y)).setX(this.xMove); altPieces.get(whatPiece(this.x,this.y)).setX(this.xMove);
altPieces.get(whatPiece(this.x,this.y)).setY(this.yMove);
return isCheck; return isCheck;
} }