Skip to main content

A simple number guessing game

Project description

ibby-Guess-the-Number

A simple number guessing game package.

Python Version License

Overview

A minimalist interactive number guessing game. The game randomly selects a number between 1 and 100; your job is to guess it.

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/ibby-guess-the-number.git
    cd ibby-guess-the-number
    
  2. (Optional) Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install the package using pip:

    pip install .
    

Usage

Command-Line Interface (CLI)

Run the game from the terminal:

python -m ibby_guess_the_number.cli

As a Python Module

You can import the game functionality in your code:

from ibby_guess_the_number import guess_the_number

# Start the game
guess_the_number()

Development

  • Structure:

    • src/ibby_guess_the_number/: Main package directory.
    • src/ibby_guess_the_number/game.py: Contains game logic and state.
    • src/ibby_guess_the_number/cli.py: CLI entry point.
    • src/ibby_guess_the_number/__init__.py: Package initialization.
  • Tests: Create tests in the tests/ directory and use your favorite test framework (e.g., pytest).

Contributing

Contributions are welcome! Fork the repo and open a pull request with your enhancements or fixes.

License

MIT License. See the LICENSE file for details.

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

ibby_guess_the_number-0.1.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

ibby_guess_the_number-0.1.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file ibby_guess_the_number-0.1.1.tar.gz.

File metadata

File hashes

Hashes for ibby_guess_the_number-0.1.1.tar.gz
Algorithm Hash digest
SHA256 65d9edd1e473de26ffae0c44f5236421693b70f30995dce7cfa0891fdaa11484
MD5 720d66c5fe17a7abe20183a5cea36e4b
BLAKE2b-256 cc24ecd0a8bfccc5ecb44d132da2aab08fa82b4ce52bbfdc946cdade33738e63

See more details on using hashes here.

File details

Details for the file ibby_guess_the_number-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ibby_guess_the_number-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 76616fd147256fa5a73e27db6868a0c7566a28a7320ff339c7fcf28b2cf851d3
MD5 f90680f1539c7dbfbacd6ec9ccb91936
BLAKE2b-256 a291257753fba27602cc4fe58f6f4d926eba6d4e127b17c66e1995acae2892eb

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