← All tools

amirhosseinmohtashami179-sudo/git.project.two

Popularity 60 Updated Development & Build

A fun and interactive number guessing game written in Python using a while loop and conditional logic.

githubauto-collected

Installation

A directly usable install command is not verified yet. Check the project documentation or releases.

Number Guessing Game in Python 🔢

A classic, interactive command-line guessing game built with Python. The program generates a random number between 1 and 100, and the player must guess it with hints provided after each try.

---

Features

  • Random Number Generation: Uses Python's built-in random module to pick a secret number between 1 and 100 on every run.
  • Interactive Gameplay: Continuously prompts the user for guesses until they find the correct number.
  • Smart Hints: Guides the player by indicating whether the target number is bigger or smaller than their current guess.
  • Success Notification: Congratulates the user once they guess the right number.

---

How to Play & Run

  • Ensure you have Python installed on your system (Python 3.x recommended).
  • Download or copy the script file (project2.py or your preferred filename).
  • Open your terminal or command prompt and run the script:
   python project2.py