コード例 #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
ファイル: Day.cs プロジェクト: robevision/Lemonade_Stand
 public void RunDay(MarketPlace marketPlace, Player player)
 {
     DisplayDayWeather();
     marketPlace.DecideToShop(player);
     player.ReviewRecipePrice();
     //MakePitcher();
     player.AskForCupPrice();
     GetCustomers(player);
     player.CheckWallet();
 }
コード例 #3
0
ファイル: Game.cs プロジェクト: robevision/Lemonade_Stand
 public Game()
 {
     daysOfWeek  = new List <Day>();
     player      = new Player();
     marketPlace = new MarketPlace();
 }