コード例 #1
0
        /// <summary>
        /// Constructor
        /// With given params, it initialise (creates new blank) indexBoard and stateBoard
        /// </summary>
        /// <param name="height"></param>
        /// <param name="width"></param>
        /// <param name="mineNum"></param>
        public Board(int height, int width, int mineNum)
        {
            indexBoard = new IndexBoard(height, width, mineNum);
            stateBoard = new StateBoard(height, width);

            //Record
            this.height  = height;
            this.width   = width;
            this.mineNum = mineNum;
        }