/// <summary> /// Instantiates the engine, with a custom board. The BoardRenderer will throw an ArgumentException, /// if the input board's width and height aren't equal. /// </summary> /// <param name="board">The input board.</param> public Engine(char[,] board) { this.boardRenderer = new BoardRenderer(board); }
/// <summary> /// Instantiates the engine, with a board size of boardSize * boardSize (default 8 * 8). /// </summary> /// <param name="boardSize">The size of the board (height/width).</param> public Engine(int boardSize = 8) { this.boardRenderer = new BoardRenderer(boardSize); }