public Game(GameSettings gameSettings) { _settings = gameSettings; Field = new GameCell[_settings.GameFieldHeight, _settings.GameFieldWidth]; SetMines(); SetGameFieldElementsValues(); }
private void NewGame() { ClearForm(); _gameSettings = new GameSettings(10, 10, 10); _gameButtons = new Button[_gameSettings.GameFieldHeight * _gameSettings.GameFieldWidth]; _game = new Game(_gameSettings); InitializeButtons(); }