Skip to content

micheal-ndoh/guessing_game_java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guessing Game

A simple terminal based guessing game written in Java.

How to Play

  1. Select a mode by entering a number between 0 and 4.
  2. Think of a number between 1 and the range for the selected mode.
  3. You enter a number to try to guess the number generated by the game.
  4. The game will keep guessing until you correctly guesses the number or runs out of tries(3).

Modes

  • 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.

Running the Game locally

To run the game, compile the GuessingGame.java file and run the resulting GuessingGame class.

Running the Game in Docker

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

About

A simple guessing game writing in java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published