piece fini et board avance
This commit is contained in:
parent
e06be13a00
commit
df2b6c1f48
|
|
@ -35,7 +35,8 @@ public class Board {
|
|||
}
|
||||
|
||||
public void setPiece(boolean isWhite, PieceType type, int x, int y) {
|
||||
//TODO
|
||||
Piece newPiece = new Piece( x, y, type,isWhite);
|
||||
pieces.add(newPiece);
|
||||
}
|
||||
|
||||
public void populateBoard() {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ public class Piece {
|
|||
this.x = x;
|
||||
this.y = y;
|
||||
this.type = type;
|
||||
this.isWhite = isWhite; // true if the piece is white, false if black
|
||||
this.isWhite = true; // true if the piece is white, false if black
|
||||
}
|
||||
|
||||
public int getX() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue