Esempio n. 1
0
        public static void Main()
        {
            int minPercentageOfImmunity = 70;
            int maxPercentageOfImmunity = 100;
            int percentageOfImmunity;

            percentageOfImmunity = random.Next(minPercentageOfImmunity, maxPercentageOfImmunity);
            Chinese chineseMan = new Chinese(percentageOfImmunity);

            while (!chineseMan.IsDead)
            {
                LifeCycle(chineseMan);
                Thread.Sleep(500);
            }
        }
Esempio n. 2
0
        private static void LifeCycle(Chinese chineseMan)
        {
            var currentVirus = EvaluateVirus();

            currentVirus.Attack(chineseMan);
        }