Skip to main content

An interactive number guessing game where players try to guess a random number between 1 and 100

Project description

Number Guessing Game

An interactive command-line guessing game where players try to guess a random number between 1 and 100.

Features

  • 🎮 Interactive gameplay
  • 🎯 Guess feedback (too high/too low)
  • 📊 Attempt tracking
  • 🔄 Play multiple rounds
  • 🚪 Easy quit option

Installation

Install from PyPI:

pip install number-guessing-game

Usage

As a command-line tool:

number-guessing-game

As a Python module:

from number_guessing_game import play_game

play_game()

How to Play

  1. Run the game and enter bhimesh
  2. The computer thinks of a number between 1 and 100
  3. Make your guess
  4. Receive feedback on whether your guess is too high or too low
  5. Keep guessing until you find the number
  6. Choose to play again or quit

You can exit at any time by typing 'q' when prompted for a guess.

Requirements

  • Python 3.6 or higher

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Feel free to submit a pull request.

Author

bhimesh (bhimeshvermaji30@gmail.com)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

number_guessing_game_bhimesh-1.0.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

number_guessing_game_bhimesh-1.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file number_guessing_game_bhimesh-1.0.2.tar.gz.

File metadata

File hashes

Hashes for number_guessing_game_bhimesh-1.0.2.tar.gz
Algorithm Hash digest
SHA256 74ecb98305a1ef9545873d59c590859e3a81161a18a01357a8f860241106b79d
MD5 ff3549e87b80186d533eafad8aca4914
BLAKE2b-256 4b1493dd7bdcbca6eedfc945f8dea847f8217458b7122822f2722a521653aa18

See more details on using hashes here.

File details

Details for the file number_guessing_game_bhimesh-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for number_guessing_game_bhimesh-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1e73a92827f5170f27d8cea8f6f10f515c8073236861b81ab29d750a74b5b8f3
MD5 c84b9f0cf3422b27968cc1855aab4a33
BLAKE2b-256 8ed0a14dc97a33263b8d2e1c790aebf9b42c1a2d26a462114812c30c2c1f5261

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page