public static string name;
public static void Main(string[] args)
Console.WriteLine("Rolling a die and flipping a coin guessing game!");
Console.WriteLine("Please input your first name:");
name = Console.ReadLine();
Console.WriteLine("Welcome to my Rolling a die and flipping a coin guessing game!");
Console.WriteLine("This program will flip a coin and roll a six-sided die.");
Console.WriteLine("You will be askes to guess the outcome of both results.");
Console.WriteLine("You may choose to get a mathematical clue or guess without it.");
Console.WriteLine("If you select no hints and guess the correct flip you may receive 2 points.");
Console.WriteLine("If you select no hints and guess the correct roll you may receive 6 points.");
Console.WriteLine("A score of 8 is the best!");
Console.WriteLine("If you select math hints and guess the correct flip you may receive 1 point.");
Console.WriteLine("If you select math hints and guess the correct roll you may receive 3 points.");
Console.WriteLine("A score of 4 is the best!");
Console.WriteLine(name + " please hit enter to start!");
Random randomflip = new Random();
Random randomroll = new Random();
flipRand = randomflip.Next(1, 3);
rollRand = randomroll.Next(1, 7);
hintadd = flipRand + rollRand;
hintmult = flipRand * rollRand;
Console.WriteLine("My flip of the coin was " + flipRand);
Console.WriteLine("My roll of the die was " + rollRand);
Console.WriteLine(name +" please let me know if you want a mathematical hint? [1] for hint and [2] for no hint!");
hintyn = int.Parse(Console.ReadLine());
Console.WriteLine(name +" so you want a mathematical hint!");
Console.WriteLine("Your additional hint shows the sum of the roll and the flip = " + hintadd);
Console.WriteLine("Your product hint shows the product of the roll and the flip = " + hintmult);
Console.WriteLine(name + " please make a choice for the coin flip! [1 for heads and 2 for tails]");
flipChoice = int.Parse(Console.ReadLine());
Console.WriteLine(name + " please make a choice for the die roll! [The numbers are 1,2,3,4,5,6]");
rollChoice = int.Parse(Console.ReadLine());
if (flipChoice == flipRand)
if (rollChoice == rollRand)
Console.WriteLine(name + " your score is " + score);
Console.WriteLine("My flip of the coin was " + flipRand);
Console.WriteLine("My roll of the die was " + rollRand);
Console.WriteLine(name + " please make a choice for the coin flip! [1 for heads and 2 for tails]");
flipChoice = int.Parse(Console.ReadLine());
Console.WriteLine(name + " please make a choice for the die roll! [The numbers are 1,2,3,4,5,6]");
rollChoice = int.Parse(Console.ReadLine());
if (flipChoice == flipRand)
if (rollChoice == rollRand)
Console.WriteLine(name + " your score is " + score);
Console.WriteLine("My flip of the coin was " + flipRand);
Console.WriteLine("My roll of the die was " + rollRand);
Console.WriteLine(name + " thank you for using my Rolling a die and flipping a coin guessing game!");