Ejemplo n.º 1
0
        public void RunGame()
        {
            random = new Random();
            UserInterface.ShowWelcome();
            GetName();
            UserInterface.ShowRules(playerOne);
            //GetDayGame();
            GetWeatherForecast();

            double runningTotalProfit      = 0;
            int    overallNumberOfCupsSold = 0;

            foreach (Day day in days)
            {
                Console.WriteLine($"Today is {day.Name}. \n ");
                day.DisplayWeather();
                playerOne.Lemonade.DecideRecipe();
                playerOne.Inventory.DisplayInventory();
                playerOne.DecideIfBuyingItems();

                RunDay(day);

                runningTotalProfit      += day.Profit;
                overallNumberOfCupsSold += day.CupsSold;

                UserInterface.DisplayDailyProfit(day.Profit, day.CupsSold);
            }

            UserInterface.DisplayTotalProfit(runningTotalProfit, overallNumberOfCupsSold);
            Console.ReadLine();
        }