Skip to content

"Guess the Number" is a fun mini-game where you try to guess a random number between 1 and 100. The game gives hints like "Too high!" or "Too low!" to help you narrow down your guesses. Play until you find the correct number and see how many tries it takes! Perfect for a quick challenge. 🎯

License

Notifications You must be signed in to change notification settings

AradAshkan/guess-the-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Guess the Number Game

Guess the Number is a simple and fun text-based game where the player tries to guess a random number generated by the computer. It's an interactive way to test your intuition and have fun!

Features

  • The computer randomly selects a number between 1 and 100.
  • The player receives hints such as "Too high!" or "Too low!" to guide their guesses.
  • The game keeps track of the number of attempts.
  • Simple, user-friendly, and great for all ages!

How to Play

  1. Run the game script in a Python environment.
  2. Enter your guesses when prompted.
  3. Use the feedback ("Too high!" or "Too low!") to adjust your next guess.
  4. Keep guessing until you find the correct number.
  5. The game ends with a congratulatory message and the number of attempts.

Requirements

  • Python 3.x
  • PyPI - Python Version

Installation

  1. Clone or download this repository.
  2. Open a terminal or command prompt and navigate to the folder containing the script.
  3. Run the script using Python:
    python guess-the-number.py

About

"Guess the Number" is a fun mini-game where you try to guess a random number between 1 and 100. The game gives hints like "Too high!" or "Too low!" to help you narrow down your guesses. Play until you find the correct number and see how many tries it takes! Perfect for a quick challenge. 🎯

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages