using System;
using System.Threading;
namespace Idk_Whats_this
{
class Program
{
static void Main(string[] args)
{
//The variables
int dice1, dice2;
int attempts = 0;
//Those Are the randoms
Random roll1 = new Random();
Random roll2 = new Random();
//Some Chat that i thought would be funny
Console.WriteLine("Welcome to the Dice Rollers L.T.D Company, Press any key to start");
Console.ReadKey();
Console.WriteLine("What We do here is simply rolling 2 dices and if they look alike in 3 attempts, YOU'LL WIN THE JACKPOT");
Console.ReadKey();
Console.WriteLine("SO WITHOUT ANY FURTHER ADO LETS START");
Console.ReadKey();
dice1 = roll1.Next(1, 7);
Start:
dice2 = roll2.Next(1, 7);
while (dice1 != dice2 && attempts < 3)
{
dice1 = roll1.Next(1, 7);
dice2 = roll2.Next(1, 7);
Console.WriteLine("\n\nDice one rolled : " + dice1);
Console.WriteLine("Dice two rolled : " + dice2);
attempts++;
Console.ReadKey();
}
if (attempts < 3 && dice1 == dice2)
Console.WriteLine("Congrats, YOU WON THE JACKPOT");
Console.ReadKey();
Console.Write("Do you want to play again? (y/n) : ");
string answer = Console.ReadLine();
if (answer == "y")
{
attempts = 0;
goto Start;
}
else if (answer == "n")
{
Console.WriteLine("Thx For Playing C U L8R");
}
Console.ReadKey();
attempts = 0;
if (attempts == 3)
{
Console.WriteLine("Sorry you lost, But do you want to play again? (y/n)");
attempts = 0;
string answer1 = Console.ReadLine();
if (answer1 == "y")
{
goto Start;
}
Console.ReadKey();
if (answer == "n")
{
Console.WriteLine("Thx For Playing C U L8R");
}
Console.ReadKey();
}
}
}
}
Here it is, but I added my touch for it