meu primeiro commit carinhoso
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImpostorQuem", "ImpostorQuem.csproj", "{D8C8AA1D-479C-4A64-94ED-86A7854F2CDC}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{D8C8AA1D-479C-4A64-94ED-86A7854F2CDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D8C8AA1D-479C-4A64-94ED-86A7854F2CDC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D8C8AA1D-479C-4A64-94ED-86A7854F2CDC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D8C8AA1D-479C-4A64-94ED-86A7854F2CDC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,139 @@
|
||||
namespace ImpostorQuem;
|
||||
|
||||
class Program
|
||||
{
|
||||
static void Main()
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Cyan;
|
||||
Console.WriteLine("Fala o seu nome Detetive");
|
||||
string nome = Console.ReadLine();
|
||||
Console.ForegroundColor = ConsoleColor.DarkRed;
|
||||
Console.WriteLine("O IMPOSTOR está entre vocês! Tem 10 pessoas na Sala, Descubra o IMPOSTOR por numeros!");
|
||||
int Pessoas = int.Parse(Console.ReadLine());
|
||||
List<int> investigados = new List<int>();
|
||||
int impostorverdadeiro = 7;
|
||||
|
||||
while (true)
|
||||
{
|
||||
if (investigados.Contains(Pessoas))
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.DarkGray;
|
||||
Console.WriteLine($"Você já conversou com a pessoa numero {Pessoas}. Quer acusá-la?");
|
||||
string certeza = Console.ReadLine();
|
||||
|
||||
if (certeza == "Não" || certeza == "Nao")
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.White;
|
||||
Console.WriteLine("Escolha outra pessoa para investigar");
|
||||
Pessoas = int.Parse(Console.ReadLine());
|
||||
continue;
|
||||
}
|
||||
|
||||
if (certeza == "Sim" || certeza == "sim")
|
||||
{
|
||||
if (Pessoas == 7)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.DarkGreen;
|
||||
Console.WriteLine($"Parabéns!!! O Detetive {nome} descobriu o IMPOSTOR");
|
||||
Environment.Exit(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Red;
|
||||
Console.WriteLine(
|
||||
$"você errou. A pessoa numero {Pessoas} era inocente. O verdadeiro IMPOSTOR te matou...");
|
||||
Environment.Exit(0);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (Pessoas == 1)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Green;
|
||||
Console.WriteLine(
|
||||
"A Primeira,afirmou q era inocente,e que provavelmente o IMPOSTOR é o quinto até o oitavo.");
|
||||
investigados.Add(1);
|
||||
|
||||
}
|
||||
else if (Pessoas == 2)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.DarkBlue;
|
||||
Console.WriteLine(
|
||||
"A Segunda,falou berrando que a primeira e oitava pessoa estão mentindo(ela estava chorando.");
|
||||
investigados.Add(2);
|
||||
}
|
||||
else if (Pessoas == 3)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.DarkMagenta;
|
||||
Console.WriteLine(
|
||||
"A Terceira,só falou que tinha certeza que o decimo era inocente(é o unico irmão dela,ela era mais velha.");
|
||||
investigados.Add(3);
|
||||
}
|
||||
else if (Pessoas == 4)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.DarkCyan;
|
||||
Console.WriteLine(
|
||||
"A Quarta,falou q não podia falar comigo,pois ele mataria ela...(Ela falou q era melhor eu sair de perto dela.");
|
||||
investigados.Add(4);
|
||||
}
|
||||
else if (Pessoas == 5)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Yellow;
|
||||
Console.WriteLine(
|
||||
"A Quinta,falou q era inocente e estava em choque ainda mas suspeita da Segunda(ela fala que a Segunda foi surbonada.");
|
||||
investigados.Add(5);
|
||||
}
|
||||
else if (Pessoas == 6)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Gray;
|
||||
Console.WriteLine(
|
||||
"A Seis,está chorando no corpo so seu amigo falecido(não quis incomodar a pessoa em luto.");
|
||||
investigados.Add(6);
|
||||
}
|
||||
else if (Pessoas == 7)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.DarkYellow;
|
||||
Console.WriteLine(
|
||||
"O Setimo,falou que era irmão mais velho da Terceira,e falou que eu podia falar com ela(ele está calmo demais e toda sua roupa é vermelha.)");
|
||||
investigados.Add(7);
|
||||
}
|
||||
else if (Pessoas == 8)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Magenta;
|
||||
Console.WriteLine(
|
||||
"A Oitava,falou que era vidente e que as caracteristicas denunciam o verdadeiro culpado(estranho.)");
|
||||
investigados.Add(8);
|
||||
}
|
||||
else if (Pessoas == 9)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Blue;
|
||||
Console.WriteLine(
|
||||
"A Nona,falou que a Oitava era inocente e que alguem mente mal(quem exatamente?)");
|
||||
investigados.Add(9);
|
||||
}
|
||||
else if (Pessoas == 10)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Black;
|
||||
Console.WriteLine("A decima,se suicidou na sua frente(qual foi o motivo?");
|
||||
investigados.Add(10);
|
||||
}
|
||||
|
||||
Console.WriteLine("Escolha outra pessoa para poder investigar. ");
|
||||
Pessoas = int.Parse(Console.ReadLine());
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user