This is a simple number guessing game. The computer will pick a random number between 1 and 4. The player will then try to guess the number. After each guess, the computer will determine if the guess is right or wrong. The player wins if they can guess the number within 2 attempts, and if the user fails to do so within the given 2 attempts, then the user loses. If the user submits their name, then the program also shows the user's name in the output screen.
The updated and the default branch is the production
branch.
- Clone the repository
- You can simply run the game by launching the
jar
file. You can find thejar
file in thejavafx-guessing-number-game\javafx-guessing-number-game\out\artifacts\GuessingNumberGame_jar
directory. - If you want to see the code and run it, you can open the project in IntelliJ IDEA. You can find the project in the
javafx-guessing-number-game\javafx-guessing-number-game
directory. - This contains three java classes. The
Main
class is only for building the artifact. - The main class is the
MainGameScreen
class. That has also been added to thepom.xml
file. - THe secondary class is the
VerdictScreen
class which contains the output result screen.
- Simply download the jar file and run it.