A simple yet addictive Python terminal game where you guess a secret number between 1 and 100!
🎮 Features
- Randomized secret number generation
- Real-time hints (Too High/Too Low)
- Track your total attempts
- Input validation to prevent errors
- Fun emoji feedback (🔼🔽🎉)
- Clean terminal-based interface
- Clone this repository
- Run
python number_guessing_game.py
- Guess numbers until you find the secret!
Requirements: Python 3.6+
# Install dependencies (none needed - pure Python!)
# Just run the script and play!
Guess the number (1-100)!
Your guess: 50
Too high! 🔼
Your guess: 25
Too low! 🔽
Your guess: 37
🎉 Correct! You won in 3 attempts!
Easily modify:
- Number range (edit
random.randint(1, 100)
) - Hints/emoji messages
- Add difficulty levels (see TODOs below)
Found a bug? Want to improve it? Open an issue or PR!
⭐ Star this repo if you enjoy nostalgic terminal games!
For extra polish, you could add:
- A screenshot of the game in action
- Badges (Python version, license, etc.)
- A "TODOs" section for future improvements
- A link to your live demo (if hosted somewhere)