public static string name;
public static void Main(string[] args)
Console.WriteLine(" Rolling a die & coin flip game!");
public static void GetName()
Console.WriteLine("Please input your name");
name = Console.ReadLine();
public static void info()
Console.WriteLine(name+ ", do you want a description of this game?");
Console.WriteLine("(1) Yes");
Console.WriteLine("(2) No");
desc = int.Parse(Console.ReadLine());
Console.WriteLine("Welcome to my Rolling a die & coin flip game!");
Console.WriteLine("You will be asked 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( " Press ENTER to start");
Console.WriteLine("Press ENTER to start");
public static void game()
Random randomflip = new Random();
Random randomroll = new Random();
flipRand = randomflip.Next(1, 3);
rollRand = randomroll.Next(1, 7);
hintAddition = flipRand + rollRand;
hintProduct = flipRand * rollRand;
Console.WriteLine(name+ ", do you want a hint?");
Console.WriteLine("(1) Hint");
Console.WriteLine("(2) No Hint");
hintyn = int.Parse(Console.ReadLine());
Console.WriteLine("You have chosen a hint...");
Console.WriteLine("Your addition hint is " +hintAddition);
Console.WriteLine("Your multiplication hint is " +hintProduct);
Console.WriteLine(name+" make your coin choice now,");
Console.WriteLine("(1) Heads, (2) Tails.");
flipChoice= int.Parse(Console.ReadLine());
Console.WriteLine(name+" make your dice choice now,");
Console.WriteLine("(1,2,3,4,5,6)");
rollChoice= int.Parse(Console.ReadLine());
if (flipChoice == flipRand)
if (rollChoice == rollRand)
Console.WriteLine("Your score is "+ score);
Console.WriteLine("The coin was " + flipRand + " and the dice was " + rollRand);
Console.WriteLine("You have chosen no hint...");
Console.WriteLine(name+" make your coin choice now,");
Console.WriteLine("(1) Heads, (2) Tails.");
flipChoice= int.Parse(Console.ReadLine());
Console.WriteLine(name+" make your dice choice now,");
Console.WriteLine("(1,2,3,4,5,6)");
rollChoice= int.Parse(Console.ReadLine());
if (flipChoice == flipRand)
if (rollChoice == rollRand)
Console.WriteLine("Your score is "+ score);
Console.WriteLine("The coin was " + flipRand + " and the dice was " + rollRand);
Console.WriteLine("Press ENTER to end game");
Console.WriteLine("Thank you for playing, " + name);