// This method controls overall game flow, including round control and end game public void StartGame() { UI.Welcome(); while (currentDay < days.Count + 1) { UI.WelcomeToANewDay(currentDay, days[currentDay - 1].weather.temperature, days[currentDay - 1].weather.sky); double startingMoney = player.wallet.Money; UI.DisplayInventory(player.inventory.lemons.Count, player.inventory.sugarCubes.Count, player.inventory.iceCubes.Count, player.inventory.cups.Count, player.wallet.Money); store.SellItems(player); double moneyAfterPurchases = player.wallet.Money; UI.DisplayInventory(player.inventory.lemons.Count, player.inventory.sugarCubes.Count, player.inventory.iceCubes.Count, player.inventory.cups.Count, player.wallet.Money); player.SetRecipe(); SellLemonade(); UI.EndDay(days[currentDay - 1].customers.Count, days[currentDay - 1].buyingCustomers, startingMoney, days[currentDay - 1].moneyMade, moneyAfterPurchases, player.recipe.recipeQuality); player.inventory.iceCubes.Clear(); // Clear out all ice at end of each round currentDay++; // Continue to the next day } UI.EndGame(player.wallet.Money); }