ibby-Guess-the-Number
A simple number guessing game package.
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
-
Clone the repository:
git clone https://github.com/yourusername/ibby-guess-the-number.git cd ibby-guess-the-number
-
(Optional) Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
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)
| File | Size | Uploaded | |
|---|---|---|---|
| ibby_guess_the_number-0.1.2.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|