I tried too ended up good.
using System;
namespace Program
{
class Program
{
static void Main(string[] args)
{
//Program Title:
Console.Title = "Two of a Kind";
//Program Width:
Console.WindowWidth = 150;
//Font Color:
Console.ForegroundColor = ConsoleColor.Yellow;
//Content:
Random numberGen = new Random();
int dice1 = 0;
int dice2 = 1;
int attempts = 0;
//Gameplay:
Console.WriteLine("Welcome to Two of a Kind. This is a game of chance where you will have to roll two dice.");
Console.WriteLine("If you get two if the same dice within 4 attempts, you win and will be rewarded with 100 lives.");
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("But if you don't, you will lose the number of lives equal to the attempts that you have made.");
Console.WriteLine("GOODLUCK :)");
Console.ReadKey();
Console.ForegroundColor = ConsoleColor.Yellow;
while (dice1 != dice2)
{
dice1 = numberGen.Next(1, 7);
dice2 = numberGen.Next(1, 7);
Console.WriteLine("You rolled: " + dice1);
Console.WriteLine("You rolled: "+ dice2 + "\n");
Console.ReadKey();
attempts++;
}
Console.WriteLine("Press ENTER to know the number of you attempts...");
Console.ReadKey();
Console.WriteLine("You have made " + attempts + " attempts...");
Console.ReadKey();
if (attempts <= 4)
{
Console.WriteLine("You have passed. Receive the blessing of IMMORTALITY!");
} else
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("You have failed mortal. RECEIVE THE PUNISHMENT FOR THE WICKED!!!");
}
//Ending Sequence:
Console.WriteLine("Press ENTER to know the next judgement.....");
Console.ReadKey();
}
}
}