This is a simple console game where the user must guess a secret number randomly generated between 1 and 100. The game offers three difficulty levels and provides feedback on whether the entered number is higher or lower than the secret number.
Inspired by the project proposed by roadmap.sh.
- Three difficulty levels: Easy, Medium, and Hard.
- Limited attempts based on the selected difficulty.
- Clear and user-friendly messages.
- Option to play again after finishing a round.
- Measures the time taken for each successful attempt.
-
Clone the repository:
git clone https://github.com/tu-usuario/Number-Guessing-Game-CLI.git cd Number-Guessing-Game-CLI
-
(Optional) Create a virtual environment:
python3 -m venv venv source venv/bin/activate
Run the game with:
python number_guessing_game.py
Follow the on-screen instructions to select the difficulty and start playing.
number_guessing_game.py # Main entry point
game.py # Main game logic
utils.py # Helper and validation functions
This project is licensed under the MIT License. See the LICENSE file for more information.
Developed by Alvix.exe.
Have fun playing and feel free to contribute!