A library to pick hangman words.
Project description
The Hangman Wordlist
A simple json wordlist for use with hangman with easy, medium and hard words!
Example usage in python
First install the package:
$ pip install the-hangman-wordlist
Then you can use it like this:
from the_hangman_wordlist import HangmanWordlist
if __name__ == "__main__":
wordlist = HangmanWordlist()
difficulty = input("What difficulty do you want? (easy/medium/hard): ")
word, version = wordlist.pull_word(difficulty)
print(f"\nThe {difficulty} word is: '{word}'")
print(f"Wordlist v{version}")
input("\nPress Enter to exit...")
Credits
- Jurriaaaantje (Wordlist words and update wordlist functionality)
- TheBiemGamer (Version check and json functionality)
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 the_hangman_wordlist-0.7.tar.gz.
File metadata
- Download URL: the_hangman_wordlist-0.7.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
923f059675a1e31cc5cedf8d4a7d5e1876787503fa4717e92f71ac45d9e1f573
|
|
| MD5 |
115b8a87a504b627135769e91fc44083
|
|
| BLAKE2b-256 |
7324f688c5658a24408a01a683280ea2f38b2679f5f32cc74b79b527f8a12b87
|
File details
Details for the file the_hangman_wordlist-0.7-py3-none-any.whl.
File metadata
- Download URL: the_hangman_wordlist-0.7-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
381bdf32af84d48e44d3e15d3c191489eeee95b2323532f1d25a52125dc49856
|
|
| MD5 |
3b425fe1bdf3369aa972e61b41232ec8
|
|
| BLAKE2b-256 |
b3981c94671779fa883e6a2f23048ef424fd51155dcef7648ffe10e51dd0eb59
|