Skip to main content

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.

Updating the README.md file:

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.

Metadata

Release files for ibby-guess-the-number 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ibby-guess-the-number 0.1.2
File Size Uploaded
ibby_guess_the_number-0.1.2.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ibby-guess-the-number 0.1.2
File Interpreter ABI Platform
ibby_guess_the_number-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / ibby_guess_the_number-0.1.2.tar.gz

Download URL ibby_guess_the_number-0.1.2.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2baf9f704f8a8d31c266de0f13c5682b41dccc3b1e94c886013303c12f0e3a60
BLAKE2b-256 checksum
How to use checksums
4a8623648e0de111c2825fa01b864d3057cf7c6ab436141c5511097e0079659f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.28

Release files / ibby_guess_the_number-0.1.2-py3-none-any.whl

Download URL ibby_guess_the_number-0.1.2-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13be6742b648a1494c82a74cc165df1915c728a0b65c8bcf899b588f215f5b5f
BLAKE2b-256 checksum
How to use checksums
5d473402be26b5d70d2e20b8f3e946d0d1b12586ac464cfe095e9d0392370396
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.28

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page