public void PlayTheGame() { Player player = new Player(); Store store = new Store(player); store.SellLemons(); store.SellSugar(); store.SellIce(); store.SellCups(); int lemonCount = player.inventory.Lemons.Count; int sugarAmount = player.inventory.Sugar.Count; int iceCount = player.inventory.Ice.Count; int cupAmount = player.inventory.Cups.Count; Console.WriteLine(player.wallet.GetBalance()); Console.WriteLine("Now, it's time to make some lemonade! Create your recipie as you see fit. You have " + lemonCount + " lemons, " + sugarAmount + " cups of sugar, " + iceCount + " ice cubes and " + cupAmount + " cups. "); Recipie recipie = new Recipie(); recipie.AddLemons(player.inventory); recipie.AddSugar(player.inventory); recipie.AddIce(player.inventory); Weather weather = new Weather(); Console.WriteLine("The weather tomorrow will be " + weather.temperature + " and " + weather.weatherType + "."); player.SetLemonadePrice(); Day day = new Day(); day.GenerateCustomers(); Customer customer = new Customer(); }
public string LikeTheTaste(Recipie recipie) { string response = ""; if (recipie.numberLemons > 6 && recipie.sugarAmount < 2) { Console.WriteLine("This lemonade is too sour!"); response = Console.ReadLine(); int chanceOfPurchase = buyingchance4; } else if (recipie.numberLemons < 4 && recipie.sugarAmount > 4) { Console.WriteLine("This lemonade is too sweet!"); response = Console.ReadLine(); int chanceOfPurchase = buyingchance4; } else if (recipie.amountIce < 2) { Console.WriteLine("Could use more ice."); response = Console.ReadLine(); int chanceOfPurchase = buyingChance3; } else if (recipie.numberLemons > 6 && recipie.sugarAmount > 4) { Console.WriteLine("There's too much of everything."); response = Console.ReadLine(); int chanceOfPurchase = buyingChance5; } else if (recipie.numberLemons < 3 && recipie.sugarAmount < 1) { Console.WriteLine("That's some light lemonade...Blech!!"); response = Console.ReadLine(); int chanceOfPurchase = buyingChance5; } else { Console.WriteLine("That's some tasty lemonade!"); response = Console.ReadLine(); int chanceOfPurchase = buyingChance1; } return(response); }