Ejemplo n.º 1
0
        public void RunGame()
        {
            UI.WelcomeMessage(database);

            SetupPlayers();

            for (int i = 0; i < numberOfDaysToPlay; i++)
            {
                if (i != 0)
                {
                    days.Add(new Day(random, players, days[i - 1].Forecast, i));
                }
                else
                {
                    days.Add(new Day(random, players, i));
                }
                UI.DisplayForecast(days[i].Forecast);
                SendPlayersToStore();
                days[i].SetPlayerRecipes(store.Products);
                days[i].SimulateDay();
            }

            GetFinalScores();
            UI.DisplayFinalScores(players, finalScores);
        }