using System.Collections.Generic;
Console.WriteLine("Dan: Yeah boi!! \n" );
Console.WriteLine("Dan: Oh for fuck sake \n" );
Console.WriteLine("Dan: Oioioi let's rot \n" );
public class Magee : IRot
Console.WriteLine("Magee: JA! där satt den! \n" );
Console.WriteLine("Magee: Men för ihelvete \n" );
Console.WriteLine("Magee: Moose in the Hoose, how are you doing? \n" );
public static IRot GetRotter(string rotType)
return rotType == "d" ? (IRot)new Dan() : (IRot)new Magee();
public static void OutputResponse(IRot rotPot, string res)
Console.WriteLine("You have selected an invalid statement");
public static void Main()
Console.WriteLine("Plese select a rotter use:" );
Console.WriteLine("d - Dan");
Console.WriteLine("m - Magee");
var rot = Console.ReadLine();
var rotter = rot.ToLower();
Console.WriteLine("Please select which mood the rotter is in" );
Console.WriteLine("h - Happy");
Console.WriteLine("a - Angry");
Console.WriteLine("g - Greets you ");
var mood = Console.ReadLine();
var res = mood.ToLower();
var rotPot = GetRotter(rotter);
Console.WriteLine("------------------------\n");
OutputResponse(rotPot, res);
Console.WriteLine("------------------------\n");
Console.Write("Press 'n' and Enter to close the app, or press any other key and Enter to continue: ");
if (Console.ReadLine() == "n") endApp = true;