Actualiser OOP_2B1_Project/src/backend/Board.java
This commit is contained in:
parent
0963247ff2
commit
ca505147b8
|
|
@ -239,8 +239,8 @@ public class Board {
|
|||
}
|
||||
|
||||
public boolean isCheck(int x, int y) {
|
||||
if (board.get(y).get(x).getType() == PieceType.king){
|
||||
|
||||
if (board.get(y).get(x).getType() == PieceType.King && board.get(y).get(x).isWhite == turnColor){
|
||||
if (kingCheck.)
|
||||
}
|
||||
}
|
||||
/* saving-loading feature :*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue