Board constructor and getters
This commit is contained in:
parent
f84e465778
commit
d5d54cb412
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue