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

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for number_guessing_game_bhimesh-1.0.3.tar.gz
Algorithm Hash digest
SHA256 d5c4cb42714dd6260e4e67efa7694207540c933275d4c5e691de3f03469bc4b8
MD5 bdeeb69f6b1f3e7b286b850b16e94a33
BLAKE2b-256 7aac0d7a7af24b9c3b410366176cc373bd8314b0579442e3547f00c1c9552b2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for number_guessing_game_bhimesh-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0b60e953e4f05ebcb2a3d55db1f5faa3179482783a1593de47aa9daf1dd7c05c
MD5 766cf322c31d77ffd3d0ca88a29b78eb
BLAKE2b-256 0aa90a9a19e8cc90461d7f753384008730fc34d76d3ce059d117e7509e6c20c5

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