Board constructor and getters

This commit is contained in:
mimie 2025-04-10 09:18:02 +02:00
parent f84e465778
commit d5d54cb412
1 changed files with 7 additions and 5 deletions

View File

@ -3,18 +3,20 @@ package backend;
import java.util.ArrayList;
public class Board {
private int colNum;
private int lineNum;
public Board(int colNum, int lineNum) {
//TODO
this.colNum = colNum;
this.lineNum = lineNum;
}
public int getWidth() {
//TODO
return 0;
return colNum; //The width is represented by the columns
}
public int getHeight() {
//TODO
return 0;
return lineNum;//The height is represented by the lines
}
public int getTurnNumber() {