Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

the_hangman_wordlist-0.6.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

the_hangman_wordlist-0.6.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file the_hangman_wordlist-0.6.1.tar.gz.

File metadata

  • Download URL: the_hangman_wordlist-0.6.1.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

Hashes for the_hangman_wordlist-0.6.1.tar.gz
Algorithm Hash digest
SHA256 b033db47e760bde1443b2b7004eda3efa6970bc8685c70fa89dd9f9e0983a65c
MD5 2283b9d58d780f479235ca8c2c77acf8
BLAKE2b-256 9b4aa764a655cb4f4d4d593bfc3cc6c77b614509a8dcac48fb205845f2840873

See more details on using hashes here.

File details

Details for the file the_hangman_wordlist-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for the_hangman_wordlist-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 461886d170acbd33991660c42ff6bf6e743043f08d0f41491503d80f96b5bc0b
MD5 8af10d854f2cedc7c25a955fb555ab8e
BLAKE2b-256 8e25de109ce54e0004a4db5baea549cc4158962f3a374b479e2018271217d777

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page