static int incorrect = 0;
public static void Main()
Random random = new Random();
Console.WriteLine("Welcome to the Dice Sum Guesser!");
Console.Write("How many games would you like to play: ");
int games = int.Parse(Console.ReadLine());
string[] Game_User_Guess = new string[games];
int [] Dice1 = new int[games];
for (int i = 0; i < games; i++)
Console.WriteLine("--------- Game " + (i + 1) + " --------");
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);
Console.WriteLine("------ Games Summary ------");
Console.WriteLine("Total Games: " + games);
for (int i = 0; i < games; i++)
Console.Write("Game " + (i+1) + ": " + Dice1[i] + " + " + dice2 + " is ");
Console.WriteLine(Game_User_Guess[i] + " than 7");
Console.WriteLine("Correct Guesses: " + correct);
Console.WriteLine("Incorrect Guesses: " + incorrect);
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");