created class Check
This commit is contained in:
parent
31fbc1debd
commit
230cfa7fc1
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
package backend;
|
||||
|
||||
public class Check {
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue