static void Main(string[] args) { Challenges challengeTest = new Challenges(); challengeTest.LetterPrinter("letter"); challengeTest.ReturnSortedList(); challengeTest.BiggieSmalls(); challengeTest.OutPutReverse("banana"); List <string> hello = new List <string>() { "JUmp", "Run", "eat" }; challengeTest.GetByLetterNoVowels(hello); challengeTest.LetterPrinter2("supercalifragilisticexpiaildosious"); challengeTest.LetterPrinterNoI("supercalifragilisticexpialidosious"); challengeTest.LetterCounter("supercalifragilisticexpialidosious"); List <string> encounters = new List <string>() { "Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,InvincibleBirdHunter,EveningGrosbeak,GreaterPrairieChicken,VulnerableBirdHunter,VulnerableBirdHunter,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,IcelandGull,CrestedIbis,GreatKiskudee,InvincibleBirdHunter,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,Bird,RedCrossbill,Red-neckedPhalarope,InvincibleBirdHunter,VulnerableBirdHunter,Orange-belliedParrot,InvincibleBirdHunter,Bird,Bird,Bird,Bird,Bird,VulnerableBirdHunter" }; DrofsnarRepo repo = new DrofsnarRepo(); Drofsnar b = new Drofsnar(5000, 3); Console.ReadLine(); }
public void BridieName(Drofsnar d, List <string> s) { while (d.Life > 0) { foreach (string b in s) { if (b == "Bird") { d.Points = +10; } else if (b == "CrestedIbis") { d.Points = +100; } else if (b == "GreatKiskudee") { d.Points = +300; } else if (b == "RedCrossedBill") { d.Points = +500; } else if (b == "RedNeckPhalarope") { d.Points = +700; } else if (b == "EveningGrossbeak") { d.Points = +1000; } else if (b == "GreaterPrairieChicken") { d.Points = 2000; } else if (b == "IcelandGull") { d.Points = +3000; } else if (b == "OrangeBelliedParrot") { d.Points = +5000; } else if (b == "VulnerableBirdHunter") { int i = 0; i++; if (i == 1) { d.Points = +200; } if (i == 2) { d.Points = +400; } else if (i == 3) { d.Points = +800; } else if (i == 4) { d.Points = +1600; } } else if (b == "InvincibleBirdHunter") { d.Life = -1; } } if (d.Points > 10000) { d.Life = +1; } } }