示例#1
0
        public void checkForLemonade(MarketPlace marketPlace, Player player)
        {
            if (pitcher == 0)
            {
                Console.WriteLine("You do not have any lemonade made. Would you still like to continue through the day?");
                string continueThruDayPrompt = Console.ReadLine().ToLower();
                switch (continueThruDayPrompt)
                {
                case "yes":
                    break;

                case "no":
                    marketPlace.DecideToShop(player);
                    break;

                default:
                    Console.WriteLine("Enter either 'yes' or 'no'.");
                    checkForLemonade(marketPlace, player);
                    break;
                }
            }
            else
            {
            }
        }
示例#2
0
 public void RunDay(MarketPlace marketPlace, Player player)
 {
     DisplayDayWeather();
     marketPlace.DecideToShop(player);
     player.ReviewRecipePrice();
     //MakePitcher();
     player.AskForCupPrice();
     GetCustomers(player);
     player.CheckWallet();
 }