示例#1
0
        }               //prevents instantiation

        /// <summary>
        /// Initializes all fields
        /// </summary>
        public void Initialze()
        {
            for (int i = 0; i < Gems.GetLength(0); i++)
            {
                for (int j = 0; j < Gems.GetLength(1); j++)
                {
                    _gems[i, j] = new Gem(new Rectangle(j * Size, i * Size, Size, Size));
                }
            }
            CheckWin(_gems);
            Score = 0;
        }