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 (see main.py)

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.4.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.4-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: the_hangman_wordlist-0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 23b8ac28e221384fb0f15ee71d19a85dc20b8db3ee1d5d2fd05f08b3487883f7
MD5 b3671623a2b46afbeb69a8ce8e35190a
BLAKE2b-256 7c8de2a4574bed0383919487ce1b588709e55c47f2bf0e43fb242d9843ba405c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for the_hangman_wordlist-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 baf8435a72dde8cd06b8cff92020934f4f7359c074a719ee742f3d3cfdac0090
MD5 cffefd38909c2a64b34e337625661a49
BLAKE2b-256 af893a462f58134962c82bf5fc969677a0ac515d3ac8d836aef31b179ca83375

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