This is a simple console-based number guessing game🤔 implemented in Python. The game generates a random number between a specified range and challenges the player to guess the correct number within a limited number of attempts.
-
Randomly generates a number within a user-defined range.
-
Allows the player to specify the number of attempts to guess the correct number.
-
Provides hints (higher/lower) to guide the player towards the correct answer.
-
Informs the player whether their guess is correct or not after each attempt.
-
Displays a victory message and the number of attempts taken upon successful guessing.
-
Handles invalid inputs gracefully and prompts for re-entry.
1.Clone the repository to your local machine.
2.Open the Python file containing the game in your preferred Python environment
3.Run the script to start the game.
4.Follow the on-screen instructions to play the game, guessing the randomly generated number.
- Python 3.x
```bash
python number_guessing_game.py
```