up to date for everybody

This commit is contained in:
Valentine GIRAL 2025-05-09 10:49:42 +02:00
parent 5af0f8487d
commit 1d3259c604
1 changed files with 13 additions and 1 deletions

View File

@ -400,7 +400,19 @@ public class Board {
} }
public Board(Board board) { public Board(Board board) {
//TODO //copy the board size
this.col = board.col; //number of column
this.line = board.line; //number of row
this.turnNumber = board.turnNumber;
this.turnWhite = board.turnWhite;
//copy the selected positions
this.selectedPosition = board.selectedPosition == null ? null:
new int[] {board.selectedPosition[0], board.selectedPosition[1]};
//Deep copy highlighted positions
this.highlightedPositions = new ArrayList<>();
for (int[] pos : highlightedPositions) {
}
} }