{
c.clear();
int number;
c.print("You have chosen Game 1");
c.print("\nThis game is very simple, the computer will have chosen a number, ");
c.print("\nyou must figure out this number. ");
c.print("\nEverytime you enter a number the computer will tell you if you must go higher or lower.");
Random randomGenerator = new Random();
for (int idx = 1;idx < 2; idx++)
{
int randomInt = randomGenerator.nextInt(20) + 1;
c.print("\n");
c.print("The computer has chosen a number please enter your first guess.");
c.print("\n");
number = c.readInt();
while (randomInt != randomInt) {
if (number < randomInt)
{
c.print("The number you have guessed is too low, guess again");
number = c.readInt();
}
c.print("\n");
if (number > randomInt)
{
c.print("The number you have guessed is too high, guess again");
number = c.readInt();
}
}
if (number == randomInt)
{
c.print("Congrats! You found the correct number! You Win");
}
}
}