up to date for everybody
This commit is contained in:
parent
5af0f8487d
commit
1d3259c604
|
|
@ -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) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue