Пример #1
0
        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();
        }