update
This commit is contained in:
parent
b86d77b61a
commit
97e949bf2d
|
|
@ -120,16 +120,6 @@ public class Board {
|
||||||
return board.get(y).get(x);
|
return board.get(y).get(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBoard(ArrayList<ArrayList<Piece>> boardToSet) {
|
|
||||||
for (int x = 0; x < 8; x++) {
|
|
||||||
for (int y = 0; y < 8; y++) {
|
|
||||||
if (boardToSet.get(y).get(x) != null) {
|
|
||||||
setPiece(x, y, boardToSet.get(y).get(x).getType(), boardToSet.get(y).get(x).isWhite());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void movePiece(int x, int y) {
|
public void movePiece(int x, int y) {
|
||||||
if (select) {
|
if (select) {
|
||||||
Piece pieceToMove = this.board.get(this.ym).get(this.xm);
|
Piece pieceToMove = this.board.get(this.ym).get(this.xm);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue