This commit is contained in:
parent
0fbc187440
commit
2b45b74ec7
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue