Пример #1
0
        public void RunGame()
        {
            GetPlayLength();
            ConvertToDays();
            DisplayWeeklyWeather();
            player.CheckWallet();
            for (int i = 0; i < 7; i++)
            {
                daysOfWeek[i].weatherConditions.GetActualWeather();
            }

            //daysOfWeek[0].weatherConditions.actualWeather;

            //this is going through each day with the forecast from each day. Not right in its current iteration.
            for (int i = 0; i < 7; i++)
            {
                daysOfWeek[i].RunDay(marketPlace, player);
            }
            playLengthNumber -= 7;
            if (playLengthNumber < 7)
            {
                CheckEndGame();
            }
            else
            {
                RunGame();
            }
            // customer.Buy(daysOfWeek[0].weatherConditions);
        }
Пример #2
0
 public void RunDay(MarketPlace marketPlace, Player player)
 {
     DisplayDayWeather();
     marketPlace.DecideToShop(player);
     player.ReviewRecipePrice();
     //MakePitcher();
     player.AskForCupPrice();
     GetCustomers(player);
     player.CheckWallet();
 }