CreachoPedia/Program.cs

42 lines
1.2 KiB
C#
Raw Normal View History

2020-09-07 06:58:48 +00:00
using System;
using System.Collections.Generic;
using System.Threading;
2020-09-07 06:58:48 +00:00
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, or (q) to quit 0u0");
2020-09-07 06:58:48 +00:00
string userin = Console.ReadLine();
if (creacherdict.ContainsKey(userin)) {
creacherdict[userin].Introduce();
creacherdict[userin].Step();
creacherdict[userin].footsies = 2;
2020-09-07 06:58:48 +00:00
}
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?!!?!?!?");
}
Console.WriteLine("");
Thread.Sleep(1000);
2020-09-07 06:58:48 +00:00
}
}
}
}