コード例 #1
0
ファイル: Game.cs プロジェクト: sehenry/LemonadeStand
        public void RunGame()
        {
            GameRules();
            int numberOfDays = ChooseDays();

            for (int i = 0; i < numberOfDays; i++)
            {
                IngredientPrices(player.bank);
                player.GetIngredients(store);
                player.RecipeDecision();
                weather.GenerateWeather();
                player.CostOfLemonade();

                int sales = customer.PotentialCustomers(weather, player).Count;
                day.DailyLemonadesPurchased(sales);
                day.DisplayDailyProfits();
                player.inventory.CurrentInventory();
            }
        }