Among Us Emergency Meeting(not finished yet)
using System;
//Make among us discuss time(emergency meeting)
//make voting system (multiple votes and ppl)
//get this thing 1 step further
//if u want anc can,make this random choice with numbergen connected to vote1 and so on
//also,make impostor random
//make skip vote
//make was not the impostor and other texts
//learn how to skip a step
//make more votes like int vote2 and other stuff
//make dialog of complaining where were you and when and things like that: i was in ____ doing ____.
//Make an if no one was ejected.
//how to make a random number gen to a limited range
namespace My_Awsome_Program
{
class Program
{
static void Main(string[] args)
{
{
Random ImpostorGen = new Random();
int ImpostorGenInt = ImpostorGen.Next(1, 5);
Console.WriteLine(ImpostorGenInt);
int red = 0;
int blue = 0;
int green = 0;
int orange = 0;
int max1 = 0;
int max2 = 0;
int max3 = 0;
Console.WriteLine("Emergency Meeting!");
Console.WriteLine("Who is the impostor?");
Console.WriteLine("The goal of the Game is to find the impostor.");
Console.WriteLine("Here are the colours you can vote off!");
Console.WriteLine("You can't vote yourself!");
Console.WriteLine("Red=1 Blue=2 Green=3 Orange=4");
Console.WriteLine("\nRed is voting!");
int vote1 = Convert.ToInt32 (Console.ReadLine()); //Red voting time
//This Is The Voting System!
if (vote1 == 2)
{
blue = blue +1;
}
else if (vote1 == 3)
{
green = green +1;
}
else if (vote1 == 4)
{
orange = orange +1;
}
else
{
Console.WriteLine("Please,make sure to write numbers,vote a valid player or do not vote a dead player!");
}
Console.WriteLine("\nBlue is voting!");
int vote2 = Convert.ToInt32 (Console.ReadLine()); //Blue voting time
if (vote2 == 1)
{
red = red +1;
}
else if (vote2 == 3)
{
green = green +1;
}
else if (vote2 == 4)
{
orange = orange +1;
}
else
{
Console.WriteLine("Please,make sure to write numbers,vote a valid player or do not vote a dead player!");
}
Console.WriteLine("Green is voting!");
int vote3 = Convert.ToInt32 (Console.ReadLine()); //Green voting time
if (vote3 == 1)
{
red = red +1;
}
else if (vote3 == 2)
{
blue = blue +1;
}
else if (vote3 == 4)
{
orange = orange +1;
}
else
{
Console.WriteLine("Please,make sure to write numbers,vote a valid player or do not vote a dead player!");
}
Console.WriteLine("Orange is voting!");
int vote4 = Convert.ToInt32 (Console.ReadLine()); //Orange voting time
if (vote4 == 1)
{
red = red +1;
}
else if (vote4 == 2)
{
blue = blue +1;
}
else if (vote4 == 3)
{
green = green +1;
}
else
{
Console.WriteLine("Please,make sure to write numbers,vote a valid player or do not vote a dead player!");
}
//Voting System Is Done!
//This Is The Voted Player System!
if (red > blue)
{
max1 = red;
}
else
{
max1 = blue;
}
if (green > max1)
{
max2 = green;
}
else
{
max2 = max1;
}
if (orange > max2)
{
max3 = orange;
}
else
{
max3 = max2;
}
//Voted Player System Is Done!
//This Is The Impostor System!
//i can set it to a high number and use a &&like this: if (red == max3 && red > 100(or more here))
if (ImpostorGenInt == 1)
{
red = red + 1000;
}
else if (ImpostorGenInt == 2)
{
blue = blue + 1000;
}
else if (ImpostorGenInt == 3)
{
green = green + 1000;
}
else if(ImpostorGenInt == 4)
{
orange = orange + 1000;
}
//Dead Message System
//Here is the problem.Maybe make new code for it?
if (max3 == red && red > 100)
{
Console.WriteLine("Red was the impostor.0 Impostors remain");
}
else
{
Console.WriteLine("Red was not an impostor.1 Impostor remains");
}
if (max3 == blue && blue > 100)
{
Console.WriteLine("Blue was the impostor.0 Impostors remain");
}
else
{
Console.WriteLine("Blue was not an impostor.1 Impostor remains");
}
if (max3 == green && green > 100)
{
Console.WriteLine("Green was the impostor.0 Impostors remain");
}
else
{
Console.WriteLine("Green was not an impostor.1 Impostor remains");
}
if (max3 == orange && orange > 100)
{
Console.WriteLine("Orange was the impostor.0 Impostors remain");
}
else
{
Console.WriteLine("Orange was not an impostor.1 Impostor remains");
}
Console.WriteLine(red);
Console.WriteLine(blue);
Console.WriteLine(green);
Console.WriteLine(orange);
Console.ReadKey();
}
}
}
}
Σχόλια
Δημοσίευση σχολίου