Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.06 KB

README.md

File metadata and controls

27 lines (19 loc) · 1.06 KB

Number Guessing Game

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.

How to Play

  1. 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.

Features

  • 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.

Usage

  • 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.