It is a game that generates numbers from 1 to 100 and the user has to guess with a limited number of lives. a limited number of lives.
This is a draft of an interactive number guessing game in which you will have a limit of lives (attempts) to you will have a limited number of lives (attempts) to guess the number according to the level of difficulty level of difficulty you choose before your lives run out.
The game is based on a command line interface (CLI) and instead of the terminal you will be able to interact with the menu and the game. the terminal you will be able to interact with the menu and the game.
- Random number generation.
- Multiple levels of difficulty.
- Command line interaction.
- Hint system to help the player.
Python version 3.12.3
Warning
click version 8.1.8 | Not yet applicable for version 1.0.0.0
To run the game you must be inside the src folder and execute the following command following command.
python main.py
or
python src/main.py
If you are on a linux distribution, it is possible that instead of using python you should use python3.
- [🛠️] Allow the user to play multiple rounds of the game (i.e., keep playing until the user decides to quit). You can do this by asking the user if they want to play again after each round.
- [🛠️] Add a timer to see how long it takes the user to guess the number.
- [✅] Implement a hint system that provides clues to the user if they are stuck.
- [🛠️] Keep track of the user’s high score (i.e., the fewest number of attempts it took to guess the number under a specific difficulty level).
Challenge posed by Roadmap.sh | Project: Number Guessing Game