This commit is contained in:
charles.duteil 2025-04-09 09:38:19 +02:00
parent 0fbc187440
commit 2b45b74ec7
1 changed files with 18 additions and 5 deletions

View File

@ -4,18 +4,31 @@ import java.util.ArrayList;
public class Board {
private int Width;
private int Height;
private ArrayList <Piece> pieces;
public Board(int colNum, int lineNum) {
//TODO
this.Width=colNum;
this.Height=lineNum;
this.pieces= new ArrayList <> ();
}
public int getWidth() {
//TODO
return 0;
return this.Width;
}
public int getHeight() {
//TODO
return 0;
return this.Height;
}
public int getTurnNumber() {