This commit is contained in:
Jerome ALTARIBA 2025-04-18 16:05:52 +02:00
commit c740e49105
1 changed files with 6 additions and 2 deletions

View File

@ -30,8 +30,12 @@ public class Board {
}
public boolean isTurnWhite() {
//TODO
return false;
if (getTurnNumber()%2==0) {
return true;
}
else{
return false;
}
}
public void setPiece(boolean isWhite, PieceType type, int x, int y) {