コード例 #1
0
ファイル: Game.cs プロジェクト: ahami14/lemonadestand
 //member methods (Can Do)
 public void RunGame()
 {
     UserInterface.DisplayRules();
     UserInterface.DisplayWeatherForecast(days);
     while (day.numberOfDays <= 7)
     {
         day.CreateCustomer();
         player.recipe.SetRecipe();
         UserInterface.DisplayStock();
         store.BuyCups();
         store.BuyLemon();
         store.BuySugar();
         store.BuyIce();
         Console.WriteLine("Here is your money leftover! " + player.wallet.Money);
         Console.ReadLine();
         player.pitcher.DisplayPitcherCups(player);
         DisplayActualWeather();
         day.ChoiceToBuy(weather, player);
         Console.WriteLine("Here is your amount of money after the day! " + player.wallet.Money);
         Console.ReadLine();
     }
 }