checked board

This commit is contained in:
MSI-AB\antoineB 2025-04-18 16:36:28 +02:00
parent 1d9958b398
commit 5fafd75e4f
1 changed files with 15 additions and 7 deletions

View File

@ -3,29 +3,37 @@ package backend;
import java.util.ArrayList; import java.util.ArrayList;
public class Board { public class Board {
private int width;
private int height;
private ArrayList<Piece> pieces;
private int turnNumber;
private boolean turnWhite;
public Board(int colNum, int lineNum) { public Board(int colNum, int lineNum) {
//TODO this.width = colNum;
this.height = lineNum;
this.pieces = new ArrayList<>();
} }
public int getWidth() { public int getWidth() {
//TODO
return 0; return width;
} }
public int getHeight() { public int getHeight() {
//TODO
return 0; return height;// the above part set the checked board
} }
public int getTurnNumber() { public int getTurnNumber() {
//TODO //TODO
return 0; return this.turnNumber;
} }
public boolean isTurnWhite() { public boolean isTurnWhite() {
//TODO //TODO
return false; return this.turnWhite;
} }
public void setPiece(boolean isWhite, PieceType type, int x, int y) { public void setPiece(boolean isWhite, PieceType type, int x, int y) {