예제 #1
0
파일: Game.cs 프로젝트: Confirmit/Students
        public Game(GameSettings gameSettings)
        {
            _settings = gameSettings;
            Field = new GameCell[_settings.GameFieldHeight, _settings.GameFieldWidth];

            SetMines();

            SetGameFieldElementsValues();
        }
예제 #2
0
        private void NewGame()
        {
            ClearForm();

            _gameSettings = new GameSettings(10, 10, 10);
            _gameButtons = new Button[_gameSettings.GameFieldHeight * _gameSettings.GameFieldWidth];
            _game = new Game(_gameSettings);

            InitializeButtons();
        }