à vous les copains

This commit is contained in:
Bastien Druillette 2025-04-17 10:37:35 +02:00
parent cb1ec97e9b
commit a062e55489
1 changed files with 12 additions and 4 deletions

View File

@ -4,18 +4,26 @@ import java.util.ArrayList;
public class Board {
public int width;
public int height;
public Board(int colNum, int lineNum) {
//TODO
this.width = colNum;
this.height = lineNum;
}
public int getWidth() {
//TODO
return 0;
return width;
}
public int getHeight() {
//TODO
return 0;
return height;
}
public int getTurnNumber() {
@ -42,7 +50,7 @@ public class Board {
public String toString() {
//TODO
return "";
return "board";
}
public ArrayList<Piece> getPieces() {