Beispiel #1
0
        public void GamePlay()
        {
            day       = new Day(random);
            random    = new Random();
            inventory = new Inventory();
            player    = new Player();
            store     = new Store();
            weather   = new Weather();
            recipe    = new Recipe();
            PlayerInfo(player);
            int AWeekLong = 7;

            for (AWeekLong = 0; AWeekLong < 7; AWeekLong++)
            {
                WeatherDisplay();
                PlayerInventory(inventory);
                BuyItems(store, inventory);
                CreateRecipe(recipe);
                day.SetPrice();
                Console.Clear();
                Console.WriteLine("Ready, press enter to begin the day.");
                Console.ReadLine();
                day.GenerateCustomers(random, weather);
                inventory.RemoveCups(day);
                day.CalculateRevenue(inventory, day);
                GetProfit(inventory);
            }
            EndGame();
        }