/// <summary>
        /// Initializes a new instance of the <see cref="BoardBuilder"/> class.
        /// </summary>
        /// <param name="rowCount">The row counter.</param>
        /// <param name="columnCount">The column counter.</param>
        public BoardBuilder(int rowCount, int columnCount)
        {
            this.RowCount = rowCount;
            this.ColumnCount = columnCount;

            this.board = new Board(this.RowCount, this.ColumnCount);
        }
Esempio n. 2
0
        public BoardBuilder(int rowCount, int columnCount)
        {
            if (rowCount < 1)
            {
                throw new ArgumentOutOfRangeException("rowCount");
            }

            if (columnCount < 1)
            {
                throw new ArgumentOutOfRangeException("columnCount");
            }

            this.RowCount = rowCount;
            this.ColumnCount = columnCount;

            this.Board = new Board(RowCount, ColumnCount);
        }