Welcome to the Number Guessing Game! This is a simple Python script that allows you to play a number guessing game. Try to guess a random number between 10 and 25 in a limited number of attempts.
-
Clone the repository to your local machine:
git clone https://github.com/yourusername/number-guessing-game.git cd number-guessing-game Run the game: shell python number_guessing_game.py Follow the on-screen instructions to guess the number.
- Random Number: The game generates a random number between 10 and 25 for each playthrough.
- User-Friendly: The game provides helpful instructions and feedback to the player.
- Limited Attempts: You have a maximum of 9 attempts to guess the correct number.
- Informative Messages: The game offers informative hints to help you guess the number.
- You can customize the range of numbers by modifying the
random.randint(10, 25)
in the code. - You can also change the number of attempts by adjusting the
max_attempts
variable.