using System;
namespace Syntax12
{
class Program
{
enum Camp { Alliance,Horde }
enum TribeAlliance{Human, Dwarf }
enum TribeHorde {Orc, Undead }
enum ClassHuman {Warlock,Priest }
enum ClassDwarf {Monk,Hunter }
enum ClassOrc {Deathknight,Warrior }
enum ClassUndead {Wizaed, Theif }
static void Main(string[] args)
{
Console.Write("[Alliance, Horde]진영을 선택해주세요.");
Console.ForegroundColor = ConsoleColor.Green;
string A = Console.ReadLine();
Console.ForegroundColor = ConsoleColor.White;
if (A == Camp.Alliance.ToString())
{
Console.Write("[Human,Dwarf]종족을 선택해주세요.");
Console.ForegroundColor = ConsoleColor.Green;
string B = Console.ReadLine();
Console.ForegroundColor = ConsoleColor.White;
if (B == TribeAlliance.Human.ToString())
{
Console.Write("[Warlock, Priest]직업을 선택해주세요.");
Console.ForegroundColor = ConsoleColor.Green;
string C = Console.ReadLine();
Console.ForegroundColor = ConsoleColor.White;
if (C == ClassHuman.Warlock.ToString())
{
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine($"{A}, {B}, {C}");
Console.ForegroundColor = ConsoleColor.White;
}
else
{
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine($"{A}, {B}, {C}");
Console.ForegroundColor = ConsoleColor.White;
}
}
else if (B == TribeAlliance.Dwarf.ToString())
{
Console.Write("[Monk, Hunter]직업을 선택해주세요.");
Console.ForegroundColor = ConsoleColor.Green;
string C = Console.ReadLine();
Console.ForegroundColor = ConsoleColor.White;
if (C == ClassDwarf.Monk.ToString())
{
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine($"{A}, {B}, {C}");
Console.ForegroundColor = ConsoleColor.White;
}
else
{
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine($"{A}, {B}, {C}");
Console.ForegroundColor = ConsoleColor.White;
}
}
}
else if (A == Camp.Horde.ToString())
{
Console.Write("[Orc,Undead]종족을 선택해주세요.");
Console.ForegroundColor = ConsoleColor.Green;
string D = Console.ReadLine();
Console.ForegroundColor = ConsoleColor.White;
if (D == TribeHorde.Orc.ToString())
{
Console.Write("[Deathknight, Warrior]직업을 선택해주세요.");
Console.ForegroundColor = ConsoleColor.Green;
string C = Console.ReadLine();
Console.ForegroundColor = ConsoleColor.White;
if (C == ClassOrc.Deathknight.ToString())
{
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine($"{A}, {D}, {C}");
Console.ForegroundColor = ConsoleColor.White;
}
else
{
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine($"{A}, {D}, {C}");
Console.ForegroundColor = ConsoleColor.White;
}
}
else if (D == TribeHorde.Undead.ToString())
{
Console.Write("[Wizaed, Theif]직업을 선택해주세요.");
Console.ForegroundColor = ConsoleColor.Green;
string F = Console.ReadLine();
Console.ForegroundColor = ConsoleColor.White;
if (F == ClassUndead.Wizaed.ToString())
{
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine($"{A}, {D}, {F}");
Console.ForegroundColor = ConsoleColor.White;
}
else
{
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine($"{A}, {D}, {F}");
Console.ForegroundColor = ConsoleColor.White;
}
}
}
}
}
}
|