diff --git a/src/backend/Board.java b/src/backend/Board.java index 1da9ee8..06bd0ae 100644 --- a/src/backend/Board.java +++ b/src/backend/Board.java @@ -400,7 +400,19 @@ public class 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) { + + } }