The program generates a random integer between 0 and 500. The user has to guess that number, and the program tells him if he guessed too low or too high, and counts his tries.
Compile with javac main.java
and/or run with java game
You need JDK to compile!!
type exit
and press enter anytime to exit.