public void RunGame(Recipe recipe, Weather weather, Game game, Money money, Store store, Inventory inventory, Customer customer) { for (int i = 0; i < 1; i++) { Day day = new Day(); day.ChooseDays(recipe, weather, game, money, store, inventory, customer, day); } ChooseRestart(recipe, weather, game, money, store, inventory, customer); }
public bool CheckInventory(Recipe recipe, Game game, Store store, Money money, Inventory inventory, Customer customer, Weather weather, Day day) { if (amountOfLemons >= recipe.lemons && amountOfIceCubes >= recipe.iceCubes && amountOfSugarCubes >= recipe.sugarCubes) { enoughInventory = true; } else { enoughInventory = false; Console.WriteLine("You ran out of product before you could serve all your customers!! Buy more and try again tomorrow!!"); day.ChooseDays(recipe, weather, game, money, store, inventory, customer, day); } return(enoughInventory); }