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 your name
  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

Your Name (your.email@example.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.0.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.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for number_guessing_game_bhimesh-1.0.0.tar.gz
Algorithm Hash digest
SHA256 906469dc5d0ad84ee12592cc40cf902a5186faf510ccdcc5743836a275e02400
MD5 959ebadbd0965d88a87cc7bf312d6276
BLAKE2b-256 297e405f04a48d9649c8862ed4ac70852af73c9260f6bf619af7b6e946313c4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for number_guessing_game_bhimesh-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee23c1fd1b462e36f37fbe9029d630c2bc4b9eb898294ae21e3644300f2dcf56
MD5 5a1fab7e7465ac18e4dbb5ba431d5c6e
BLAKE2b-256 6465dc3cdde6ac01f90e41dcbe8ac5785ad9185c9fa01d7b6e325ea9373472db

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