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 (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.1.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.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for number_guessing_game_bhimesh-1.0.1.tar.gz
Algorithm Hash digest
SHA256 03c74c59db2764a492bfa6cf5629d301cebaeb24c71d0e8e73e421a85a72ed00
MD5 2159d41646df00f060db0bb293d9c40e
BLAKE2b-256 c848c747ca8419f1ae0392d3f6a955078f2ddb164efff9b79d0d6ac2d905642c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for number_guessing_game_bhimesh-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 056cdcc4dc01e453a2d0f9405a2e188d7a811df23ea820de2f06e21834d72f70
MD5 d0b6090bd85bb9fb803aceae5ce22d8f
BLAKE2b-256 eb2b96a77972b92610b5c2a8db5dad15ceeb60f91f5f5ca28b40181179628b15

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