This commit is contained in:
CT
2026-04-24 15:44:13 -05:00
parent c3318f834c
commit 3e96095c66
2 changed files with 22 additions and 3 deletions

View File

@@ -41,6 +41,14 @@ public class Board {
return this.board[x][y];
}
public void setPiece(int x, int y, Piece p) {
this.board[x][y] = p;
}
public void setPiece(Position pos, Piece p) {
this.board[pos.x][pos.y] = p;
}
public static Board copy(Board b) {
Board newBoard = new Board();