A simple number guessing game
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ibby_guess_the_number-0.1.2.tar.gz.
File metadata
- Download URL: ibby_guess_the_number-0.1.2.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.28
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2baf9f704f8a8d31c266de0f13c5682b41dccc3b1e94c886013303c12f0e3a60
|
|
| MD5 |
241daa8117f45095cc7646496b39c3ee
|
|
| BLAKE2b-256 |
4a8623648e0de111c2825fa01b864d3057cf7c6ab436141c5511097e0079659f
|
File details
Details for the file ibby_guess_the_number-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ibby_guess_the_number-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.28
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13be6742b648a1494c82a74cc165df1915c728a0b65c8bcf899b588f215f5b5f
|
|
| MD5 |
df9ce3be29e1de79dda6833b68f8332d
|
|
| BLAKE2b-256 |
5d473402be26b5d70d2e20b8f3e946d0d1b12586ac464cfe095e9d0392370396
|