Skip to main content

A python client library for word search in games like iMessage wordhunt and anagram.

Project description

WordHuntAnagram

Play iMessage Anagram and wordhunt or any search word game using this module.

Example

`

from wordhuntanagram.wordhunt import WordHunt

word = WordHunt(4, 4, args='yiuonhjnhffhggdb', auto_input=False)
word.hunt()
print(word.words)

`

`

from wordhuntanagram.anagram import Anagram

anagram = Anagram(args='ioijbf', auto_input=False)
anagram.hunt()
print(anagram.words)

`


Note that you have to be quick in doing all this. Its advisable to use a while loop.


`

run = True
while run:
    type_ = input("Choose type: (wordhunt-w/anagram-a)")
    if type_ == 'w' or type_ == 'wordhunt':
        word = WordHunt(4, 4)
        word.hunt()
        for item in word.words:
            print(item, '', word.words[item])
    elif type_ == 'a' or type_ == 'anagram':
        anagram = Anagram(6)
        anagram.hunt()
        for item in word.words:
            print(item, '', word.words[item])
    else:
        print("Input valid type")
    continuation = input("Press y to continue, any key to exit")
    if continuation != 'y':
        run = False
    else:
        ### you can clear the terminal here
        pass

`

Enjoy!

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

wordhunt-anagram-search-python-0.1.2.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file wordhunt-anagram-search-python-0.1.2.tar.gz.

File metadata

  • Download URL: wordhunt-anagram-search-python-0.1.2.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.2 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.4

File hashes

Hashes for wordhunt-anagram-search-python-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4a24aa019d2069c4ecd86c8bf08cd7b7b969be3c36e5394087287e287e543b86
MD5 0abb9d15d9bd366c4e306c507ba9eff7
BLAKE2b-256 d8aa2ca7e9cf97f7e3ce35b6d8db6f08453cbdedb3de077afad2c907b1910e30

See more details on using hashes here.

File details

Details for the file wordhunt_anagram_search_python-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: wordhunt_anagram_search_python-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.2 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.4

File hashes

Hashes for wordhunt_anagram_search_python-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1e70570a777c36d61a29bf6a977d13b8f19e9f0688cbc3b47cbca138cb40b5b3
MD5 490d8ee3b686bbdeeada4dd1316c5ccd
BLAKE2b-256 c3c660d1901fd59d053e97a538109a66127b745f014653a07d691c8df95a9342

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