A simple beginner-friendly Python game where the computer chooses a random number and the player tries to guess it.
- Three difficulty levels: Easy, Medium, and Hard
- Different number ranges and attempt limits
- Too high / too low hints
- Input validation
- Attempt counter
- Replay option
- Shows the correct number when the player runs out of attempts
- Python
randommodule
python guessing_game.py- Choose a difficulty level.
- Guess the hidden number within the given range.
- Use the hints to improve your next guess.
- Try to find the number before your attempts run out.
- Choose whether to play again.
- Functions
- Variables
- Loops
- Conditions
- User input
- Random numbers
- Dictionaries
- Basic error handling
Author: Anshul Rajput