meu primeiro commit carinhoso

This commit is contained in:
2026-11-17 15:55:29 -03:00
commit b678264787
33 changed files with 973 additions and 0 deletions
+41
View File
@@ -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");
}
}
}
+10
View File
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
+16
View File
@@ -0,0 +1,16 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RPG", "RPG.csproj", "{17474D7A-6F35-48B2-B0B4-C09FA13E0DEC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{17474D7A-6F35-48B2-B0B4-C09FA13E0DEC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{17474D7A-6F35-48B2-B0B4-C09FA13E0DEC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{17474D7A-6F35-48B2-B0B4-C09FA13E0DEC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{17474D7A-6F35-48B2-B0B4-C09FA13E0DEC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal