public static string Name;
public static void Main()
public static void Introduction()
Console.WriteLine("Welcome to My Game of Coin Toss & Dice Roll!");
Console.WriteLine("The Program I created will simultaneously Flip a Coin and Roll Two Six-Sided Dice");
Console.WriteLine("You will then have to guess what the outcome will be for the Coin and the Dices");
Console.WriteLine("If you are having trouble with my Game, you will have the option to receive a Mathematical Clue");
Console.WriteLine("If you Guess Correctly for the Coin Toss without any Hints, you might earn 2 Points");
Console.WriteLine("If you Guess Correctly for both Dice Rolls without any Hints, you might earn 12 Points");
Console.WriteLine("The Highest Score without Hints is 14 Points");
Console.WriteLine("If you Guess Correctly for the Coin Toss with a Hint, you might earn 1 Point");
Console.WriteLine("If you Guess Correctly for both Dice Rolls with a Hint, you might earn 6 Points");
Console.WriteLine("The Highest Score with Hints is 7 Points");
Console.WriteLine("Please Press Enter to Continue: ");
public static void YourName()
Console.WriteLine("Please enter your First Name: ");
Name = Console.ReadLine();
public static void DiceCoins()
Random randomcoin = new Random();
Random randomdice = new Random();
Random randomdice2 = new Random();
coinRand = randomcoin.Next(1, 3);
diceRand = randomdice.Next(1, 7);
diceRand2 = randomdice2.Next(1, 7);
hintadd = coinRand + diceRand;
hintadd2 = coinRand + diceRand2;
hintmultiply = coinRand * diceRand;
hintmultiply2 = coinRand * diceRand2;
Console.WriteLine("If you want a hint " + Name + ", Please let me Know. Type 1 for Yes or 2 for No: ");
hintYesNo = int.Parse(Console.ReadLine());
Console.WriteLine("You decided to have a Mathematical Hint " + Name);
Console.WriteLine("Your Addition Hint is the Sum of the First Dice and the Coin. Their Sum = " + hintadd);
Console.WriteLine("Your Second Addition Hint is the Sum of the Second Dice and the Coin. Their Sum = " + hintadd2);
Console.WriteLine("Your Multiplication Hint is the Product of the First Dice and the Coin.: Their Product = " + hintmultiply);
Console.WriteLine("Your Second Multiplication Hint is the Product of the Second Dice and the Coin.: Their Product = " + hintmultiply2);
Console.WriteLine("Now " + Name + ". Please make your guess for the Coin Toss. Enter 1 for Heads or 2 for Tails: ");
CoinDecision = int.Parse(Console.ReadLine());
Console.WriteLine("Now " + Name + ". Please make your guess for the First Dice Roll. Enter a Number from 1-thru-6 (1,2,3,4,5 or 6): ");
DiceDecision = int.Parse(Console.ReadLine());
Console.WriteLine("Now " + Name + ". Please make your guess for the Second Dice Roll. Enter a Number from 1-thru-6 (1,2,3,4,5 or 6): ");
DiceDecision2 = int.Parse(Console.ReadLine());
if (CoinDecision == coinRand)
if (DiceDecision == diceRand)
if (DiceDecision2 == diceRand2)
Console.WriteLine("Your Score" + Name + " = " + score);
Console.WriteLine("The Coin Flip was: " + coinRand);
Console.WriteLine("The First Dice Roll was: " + diceRand);
Console.WriteLine("The Second Dice Roll was: " + diceRand2);
Console.WriteLine("Now " + Name + ". Please make your guess for the Coin Toss. Enter 1 for Heads or 2 for Tails: ");
CoinDecision = int.Parse(Console.ReadLine());
Console.WriteLine("Now " + Name + ". Please make your guess for the Dice Roll. Enter a Number from 1-thru-6 (1,2,3,4,5 or 6): ");
DiceDecision = int.Parse(Console.ReadLine());
Console.WriteLine("Now " + Name + ". Please make your guess for the second Dice Roll. Enter a Number from 1-thru-6 (1,2,3,4,5 or 6): ");
DiceDecision2 = int.Parse(Console.ReadLine());
if (CoinDecision == coinRand)
if (DiceDecision == diceRand)
if (DiceDecision2 == diceRand2)
Console.WriteLine("Your Score " + Name + " = " + score);
Console.WriteLine("The Coin Flip was: " + coinRand);
Console.WriteLine("The First Dice Roll was: " + diceRand);
Console.WriteLine("The Second Dice Roll was: " + diceRand2);
Console.WriteLine("Thank You " + Name + " for playing my Dice Roll & Coin Toss Guessing Game!");