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); } }
private static void LifeCycle(Chinese chineseMan) { var currentVirus = EvaluateVirus(); currentVirus.Attack(chineseMan); }