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 hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page