This commit is contained in:
Romain MURPHY 2025-04-12 13:48:10 +02:00
parent b86d77b61a
commit 97e949bf2d
1 changed files with 0 additions and 10 deletions

View File

@ -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);