meu primeiro commit carinhoso
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
namespace RPG;
|
||||
|
||||
class Program
|
||||
{
|
||||
static void Main()
|
||||
{
|
||||
Program.MostrarPersonagem();
|
||||
}
|
||||
static void MostrarPersonagem()
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Green;
|
||||
Console.WriteLine("Digite seu nome:");
|
||||
string nome = Console.ReadLine();
|
||||
Console.ForegroundColor = ConsoleColor.Green;
|
||||
Console.WriteLine("=== Escolha Uma CLASSE: 1 - GUERREIRO 2 - MAGO 3 - ARQUEIRO");
|
||||
int classe = int.Parse(Console.ReadLine());
|
||||
while (classe < 1 || classe > 3)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Red;
|
||||
Console.WriteLine("CLASSE INVALIDA");
|
||||
classe = int.Parse(Console.ReadLine());
|
||||
}
|
||||
|
||||
if (classe == 1)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.DarkBlue;
|
||||
Console.WriteLine($"{nome} é um GUERREIRO");
|
||||
}
|
||||
else if (classe == 2)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.DarkBlue;
|
||||
Console.WriteLine($"{nome} é um MAGO");
|
||||
}
|
||||
else if (classe == 3)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.DarkBlue;
|
||||
Console.WriteLine($"{nome} é um ARQUEIRO");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user