Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.05 KB

File metadata and controls

30 lines (23 loc) · 1.05 KB

Number Guessing Game

Introduction

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.

How to Play

  1. Run the number_guessing_game.py script.
  2. Enter your name when prompted.
  3. Guess a number between 1 and 10.
  4. The program will inform you if your guess is too high or too low.
  5. Keep guessing until you guess the correct number.
  6. The program will display the number of attempts it took to guess correctly.
  7. You can choose to play again or exit the game.

Features

  • High score tracking to see the best attempts.
  • Input validation to ensure valid guesses.
  • Option to play the game multiple times.

Requirements

  • Python 3.x

Usage

  1. Clone this repository to your local machine.
  2. Navigate to the project directory.
  3. Run the game using the command: python number_guessing_game.py

License

This project is open-source and available under the MIT License.