This simple Python game challenges you to guess a random number between 1 and 100. You can choose your preferred difficulty level, and the game will provide hints and keep track of your remaining attempts.
- Choose your preferred difficulty level: Easy, Medium, or Hard.
- Receive hints about the correct number.
- Keep track of your remaining attempts.
- Enjoy a fun and interactive number guessing experience.
Before you begin, ensure you have met the following requirements:
- Python 3 installed on your machine.
-
Clone the repository:
-
Navigate to the project directory:📍
cd GuessTheNumber
-
Run the game:
▶️ python main.py
- When you start the game, it will generate a random number between 1 and 100.
- You will be prompted to choose a difficulty level: Easy, Medium, or Hard.
- The game will provide hints about the correct number.
- You have a limited number of attempts based on your chosen difficulty level.
- Try to guess the correct number within the allotted attempts.
- If you guess correctly, you win the game! Otherwise, you can choose to play again.
- Easy: You have 10 attempts to guess the number.
- Medium: You have 7 attempts to guess the number.
- Hard: You have 5 attempts to guess the number.
Feel free to clone this repo 😉
git clone https://github.com/SaiSantosh2209/GuessTheNumber.git