This is a simple Python program for a Number Guessing Game. It allows players to guess a randomly selected number between 1 and 10. The program keeps track of the number of attempts and displays the current high score.
- Run the
number_guessing_game.py
script. - Enter your name when prompted.
- Guess a number between 1 and 10.
- The program will inform you if your guess is too high or too low.
- Keep guessing until you guess the correct number.
- The program will display the number of attempts it took to guess correctly.
- You can choose to play again or exit the game.
- High score tracking to see the best attempts.
- Input validation to ensure valid guesses.
- Option to play the game multiple times.
- Python 3.x
- Clone this repository to your local machine.
- Navigate to the project directory.
- Run the game using the command:
python number_guessing_game.py
This project is open-source and available under the MIT License.