The Number Guessing Game is a simple Python-based console game where the player tries to guess a randomly generated number within a defined range.
After each guess, the program provides hints such as "Too High" or "Too Low", helping the player reach the correct answer in the minimum number of attempts.
This project is perfect for beginners to understand core programming concepts in a fun and interactive way.
- ๐ฒ Random number generation
- ๐งโ๐ป Interactive user input
- ๐ Feedback after each guess (higher/lower hints)
- ๐ข Tracks number of attempts
- ๐ก Simple and clean command-line interface
- Loops (
while,for) - Conditional statements (
if-else) - Python
randommodule - User input handling
- Basic problem-solving logic
- Run the Python file
- Enter your guess
- Follow the hints provided:
- ๐ Too High โ Try a smaller number
- ๐ Too Low โ Try a larger number
- Keep guessing until you find the correct number ๐
# Clone the repository
git clone https://github.com/your-username/Guessing-game-Python.git
# Move into directory
cd Guessing-game-Python
# Run the game
python game.py