/// <summary> /// Constructor for creating memento object with IFigure matrix and figures positions on board /// </summary> /// <param name="board">The board that we want to save</param> /// <param name="figurePositionsOnBoard">All the figure positions from the board</param> public BoardMemento(IFigure[,] board, Dictionary<string, IPosition> figurePositionsOnBoard) { this.board = new IFigure[board.GetLength(0), board.GetLength(1)]; this.Board = board; this.FigurePositionsOnBoard = figurePositionsOnBoard; }