CreachoPedia/Program.cs

37 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
namespace creachopedia {
class Program {
static void Main(string[] args) {
var creacherdict = new Dictionary<string, Creacher>();
creacherdict.Add("paca", new GroundCreacher("paca", 4));
creacherdict.Add("llama", new GroundCreacher("llama", 4));
creacherdict.Add("stingray", new WaterCreacher("stingray", 0));
while (true) {
Console.WriteLine("Please input a creacher name 0u0");
string userin = Console.ReadLine();
if (creacherdict.ContainsKey(userin)) {
creacherdict[userin].Introduce();
}
else if(userin == "q"){
Console.WriteLine("Thank you for using the CreachoPedia!!!!");
return;
}
else if(userin == "heenlo!" || userin == "henlo" || userin == "heenlo"){
Console.WriteLine("Well heenlo to you too! 0u0");
}
else {
Console.WriteLine("I don't know what that is! What on boo Earth?!!?!?!?");
}
}
}
}
}