static int correct_guesses = 0;
static int incorrect_guesses = 0;
public static void Main()
Random random = new Random();
Console.Write("How many games would you like to play: ");
int games = int.Parse(Console.ReadLine());
int[] Guess_Rolls = new int[games];
int[] Actual_Roll = new int[games];
for (int i = 0; i < games; i++)
Console.WriteLine("--------------------- Game " + (i + 1) + " -----------------------");
Console.WriteLine("Guess the value of the roll of a dice: ");
human_Guess = int.Parse(Console.ReadLine());
Guess_Rolls[i] = human_Guess;
computer_Roll = Computer_Roll(random);
Actual_Roll[i] = computer_Roll;
Check_Result(human_Guess, computer_Roll);
Console.WriteLine("Human Guess: " + human_Guess + " and the actual roll value " + Computer_Roll(random));
Console.WriteLine("--------------------- Games Summary -----------------------");
Console.WriteLine("Total Games: " + games);
for (int i = 0; i < games; i++)
Console.Write("Game " + (i+1) + ": " + Guess_Rolls[i] + " ");
Console.WriteLine(Actual_Roll[i]);
Console.WriteLine("Correct Guesses: " + correct_guesses);
Console.WriteLine("Incorrect Guesses: " + incorrect_guesses);
static int Computer_Roll(Random r)
static void Check_Result(int u, int c)
Console.WriteLine("You guessed the roll correctly");
Console.WriteLine("You incorrectly guessed the roll");