A simple terminal based guessing game written in Java.
- Select a mode by entering a number between 0 and 4.
- Think of a number between 1 and the range for the selected mode.
- You enter a number to try to guess the number generated by the game.
- The game will keep guessing until you correctly guesses the number or runs out of tries(3).
- EASY: Range is 10.
- NORMAL: Range is 50.
- HARD: Range is 100.
- SUPER HARD: Range is 100.
- Win twice and receive 1k Mode: Range is 1000. If you win twice in a row, you will receive 1k.
To run the game, compile the GuessingGame.java file and run the resulting GuessingGame class.
To run the game in Docker,pull the Docker image and run the container.
# Pull the Docker image
docker pull ghcr.io/micheal-ndoh/guessing_game_java:slim
# And run the container
docker run -it -v $(pwd)/data:/usr/src/app/data ghcr.io/micheal-ndoh/guessing_game_java:slim