Esempio n. 1
0
 public void RunGame()
 {
     userInterface.DisplayInstructions();
     player.GetName();
     for (int i = 1; i <= 7; i++)
     {
         store.StringForecast(currentDay, weatherList);
         store.DisplayForecast(currentDay, weatherList);
         store.BuyLemons(player);
         store.BuySugar(player);
         store.BuyIceCubes(player);
         player.inventory.DisplayInventory();
         player.recipe.DisplayRecipe();
         player.recipe.QuestionRecipe();
         player.recipe.CostPerCup();
         MakeLemonade();
         createCustomers(weatherList[currentDay - 1].customerCount);
         DayStand();
         EndOfDay();
     }
     EndGame();
     connection.InsertHS(totalProfit, player.name);
     connection.DisplayHS();
 }