Example #1
0
        public static void CollectChickenInput(ChickenHouse Chickenhouse)
        {
            Utils.Clear();
            Console.WriteLine("The following animals are in the Chicken House.\n");
            Console.WriteLine($"1. {Chickenhouse.AnimalCount()}");
            Console.WriteLine("\nHow many Chickens should be processed?");
            Console.Write("> ");
            var parsedChoice = int.Parse(Console.ReadLine());

            while (true)
            {
                for (int i = 0; i < parsedChoice; i++)
                {
                    Chickenhouse.Animals.Remove(Chickenhouse.Animals[Chickenhouse.Animals.Count - i - 1]);
                }
                break;
            }
        }