chess board complete
This commit is contained in:
parent
f9d98cf610
commit
562c21bd0b
|
|
@ -3,19 +3,20 @@ package backend;
|
|||
import java.util.ArrayList;
|
||||
|
||||
public class Board {
|
||||
private int line;
|
||||
private int col;
|
||||
|
||||
public Board(int colNum, int lineNum) {
|
||||
//TODO
|
||||
this.col=colNum;
|
||||
this.line=lineNum;
|
||||
}
|
||||
|
||||
public int getWidth() {
|
||||
//TODO
|
||||
return 0;
|
||||
return this.line;
|
||||
}
|
||||
|
||||
public int getHeight() {
|
||||
//TODO
|
||||
return 0;
|
||||
return this.col;
|
||||
}
|
||||
|
||||
public int getTurnNumber() {
|
||||
|
|
|
|||
|
|
@ -1,13 +1,15 @@
|
|||
package backend;
|
||||
|
||||
public class Piece {
|
||||
private int X;
|
||||
private int Y;
|
||||
|
||||
public int getX() {
|
||||
return 0;
|
||||
return this.X;
|
||||
}
|
||||
|
||||
public int getY() {
|
||||
return 0;
|
||||
return this.Y;
|
||||
}
|
||||
|
||||
public PieceType getType() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue