Hangman Package
The Hangman package is a Python implementation of the classic game, Hangman. It allows users to play the game by guessing letters to complete a hidden word.
Installation
The package can be installed using pip:
pip install hangman-package
Usage
The package can be used in the following way:
from hangman import Hangman
# Create a new instance of Hangman
hangman = Hangman()
# Start the game
hangman.play()
You can pass a list of strings to utilize custom words:
from hangman import Hangman
words = ["banana", "orange", "apple", "grape", "strawberry", "lemon", "watermelon"]
# Create a new instance of Hangman with custom words
hangman = Hangman(words=words)
# Start the game
hangman.play()
When play() is called, the game will begin and the user will be prompted to guess letters to complete the hidden word. The game ends when the user either completes the word or runs out of guesses.
Contributing
Contributions to the Hangman package are welcome! If you encounter a bug or have a feature request, please open an issue on the GitHub repository.
If you would like to contribute to the package, please fork the repository and submit a pull request with your changes.
License
The Hangman package is open-source software licensed under the MIT license.
Metadata
Release files for hangman-package 1.0.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 | Provenance | |
|---|---|---|---|---|
| hangman-package-1.0.2.tar.gz | 3.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hangman_package-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / hangman-package-1.0.2.tar.gz
| Download URL | hangman-package-1.0.2.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c083011408c017f228a3dd26749c2e912daae4253bec74ab2c145fa256ddc3a7
|
|
BLAKE2b-256 checksum How to use checksums |
ab8e3b56a0f3e337b339f8fe35cb1696718a7a2f89bb7d4ede0deb480f12c640
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / hangman_package-1.0.2-py3-none-any.whl
| Download URL | hangman_package-1.0.2-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8bb6d661fbcc31088824f2e191665a5ae236c10ffa9a4b11bbc8e131d8b06d2
|
|
BLAKE2b-256 checksum How to use checksums |
96baf058114c4e21625c5a0a4a2a6744db67c03738d3aaa9c49efdb6c444e1c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for hangman-package 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.