This is a simple Python terminal-based number guessing game where the computer selects a random number between 1 and 100, and the player tries to guess it within a limited number of attempts. Difficulty levels adjust the number of chances given.
π Project Idea Reference: Number Guessing Game β roadmap.sh
- Random number generation between 1 and 100
- Three difficulty levels:
- Easy β 10 guesses
- Medium β 5 guesses
- Hard β 3 guesses
- Russian Roullete - 1 guess
- Feedback after each guess: too high or too low
- Option to replay the game after finishing
- Make sure Python is installed (version 3.x recommended).
- Download the script or clone the repository.
- Run the game using the terminal:
python GameV3_0.py- Choose a difficulty level.
- Enter your guesses one by one.
- Try to guess the number before you run out of chances.
- Replay as many times as you'd like!
GameV3_0.pyβ Main game file.
Welcome to the Number Guessing Game!
I'm thinking of a number between 1 and 100.
You have 5 chances to guess the correct number.
Please select the difficulty level:
1. Easy (10 chances)
2. Medium (5 chances)
3. Hard (3 chances)
4. Russian Roullete(1 chance)
Enjoy playing and feel free to modify the game to make it even more fun!