public Presenter(IView view) { this.view = view; settings = new Settings(Settings.Levels.Beginner); highScores = new HighScores(); minefield = new Minefield(settings); closedCells = settings.Width * settings.Height; view.FieldWidth = minefield.Width; view.FieldHeight = minefield.Height; view.MinesCount = minefield.MinesCount; view.NotFoundMinesCount = view.MinesCount; }
public void StartNewGame() { isFirstClick = true; view.ClearField(); minefield = new Minefield(settings); view.FieldWidth = minefield.Width; view.FieldHeight = minefield.Height; view.MinesCount = minefield.MinesCount; view.NotFoundMinesCount = view.MinesCount; view.NewGame(); view.CreateField(); closedCells = settings.Width * settings.Height; }