static int incorrect = 0;
static string[] Game_User_Guess = new string[games2];
static int [] Dice1 = new int[games2];
static int [] Actual_Sum = new int [games2];
public static void Main()
Random random = new Random();
Console.WriteLine("--------- Game " + (i) + " --------");
Console.WriteLine("The value of dice 1 is: " + dice1);
Console.WriteLine("The value of dice 2 is: ???");
Console.WriteLine("Is the sum of both dice higher, lower, or equal to 7 (write higher, lower, equal to)");
guess = Console.ReadLine();
Game_User_Guess[i] = guess;
Check_Result(guess, sum);
Console.WriteLine("The value of dice 2 is: " + dice2);
Console.WriteLine("The sum of both dice is: " + sum);
static int roll1(Random r)
static int roll2(Random r)
static void Check_Result(string u, int c)
if (u.Equals("higher") && c > 7)
Console.WriteLine("You guessed correctly!");
else if (u.Equals("higher") && c == 7)
Console.WriteLine("You guessed incorrectly :(");
else if (u.Equals("higher") && c < 7)
Console.WriteLine("You guessed incorrectly :(");
else if (u.Equals("lower") && c < 7)
Console.WriteLine("You guessed correctly!");
else if (u.Equals("lower") && c == 7)
Console.WriteLine("You guessed incorrectly :(");
else if (u.Equals("lower") && c > 7)
Console.WriteLine("You guessed incorrectly :(");
else if (u.Equals("equal to") && c == 7)
Console.WriteLine("You guessed correctly!");
else if (u.Equals("equal to") && c > 7)
Console.WriteLine("You guessed incorrectly :(");
else if (u.Equals("equal to") && c < 7)
Console.WriteLine("You guessed incorrectly :(");
Console.WriteLine("This is not a valid option");
static void playAgain(Random r)
Console.WriteLine("Do you wish to play again (yes or no)?");
result = Console.ReadLine();
result = result.ToLower();
if (result.Equals("yes"))
else if (result.Equals("no"))
Console.WriteLine("------ Games Summary ------");
Console.WriteLine("Total Games: " + games1);
for (int i = 0; i < games1; i++)
Console.Write("Game " + (i+1) + ": " + Dice1[i] + "? is ");
Console.WriteLine(Game_User_Guess[i] + " " + Actual_Sum[i]);
Console.WriteLine("Correct Guesses: " + correct);
Console.WriteLine("Incorrect Guesses: " + incorrect);