Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <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);
 }
Пример #3
0
 /// <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);
 }
Пример #4
0
 /// <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);
 }