Esempio n. 1
0
 //methods
 public void PlayGame()
 {
     rules.DisplayRules();
     day = new Day();
     day.weather.WeeklyForecast();
     player = new Player();
     store  = new Store(player);
     while (day.day < 8)
     {
         day.DisplayDay();
         GoToStore();
         player.PlayerStart();
         day.CustomerBuy(player);
         day.DisplayTotalProfit(player);
     }
     EndGame();
 }
Esempio n. 2
0
        public void DisplayMainMenu(Day day, Player player)
        {
            DisplayGameBanner();
            day.DisplayDay();
            day.weather.DisplayForecast();
            Console.WriteLine("Wallet = ${0:0.00}", player.wallet.GetCashOnHand());

            foreach (string option in mainMenu)
            {
                Console.WriteLine(option);
            }
            string userInput = Console.ReadLine();;

            if (!int.TryParse(userInput, out mainMenuOutput))
            {
                Console.WriteLine("\nPlease select from the available options!");
                DisplayMainMenu(day, player);
            }
        }