Components:
- Anagrams.py
- WordHunt.py
- WordHuntStats.py
- WordHunter.py
- Image and Text Files
This is a Python program that helps play the GamePigeon game Anagrams. It takes in the 6 letters on the board provided as input and returns all possible words that can be formed using those 6 letters
This is a Python program that helps play the GamePigeon game Word Hunt. It takes in the 16 letters that form the 4x4 board as input in the terminal, and it:
- Displays in the terminal a list of all the words that can be found on that board. Along with a each word, it provides the coordinate (a,b) that represents the starting square of the word and a series of directions that indicate where to swipe to reach each subsequent letter in the word
- Creates a new pygame window that displays the Top 50 longest, highest-scoring words on the board in a visual format
This python program uses matplotlib to plot some interesting statistics and patterns across all the possible Word Hunt words. For example:
- the frequency of every letter across that set of possible words
- the frequency of substrings of lengths 2-8 across that set of possible words
- the weighted scores of the letters and substrings depending on the size of the words they appear in
This python finds all possible words in a Word Hunt 4x4 board by using:
- OpenCV image capturing + processing
- pytesseract text recognition
Instructions: After running the .py file, open the Camera window, and then press the "s" key to capture the image of the Word Hunt board. It then carries out the functions described in 2. Word Hunt.py
- Transformations is a folder used by WordHunter.py to store the intermediate image transformations performed by OpenCV
- Dictionary.txt is the reference dictionary that contains all the English words considered by the programs
- ShavedDict.txt is a modified dictionary that only contains words of 6 letters in length or shorter - used for 1. Anagrams.py
Modules which need to be downloaded and imported, along with the appropriate installation commands
- PyGame:
pip install pygame- Needed for 2,4 - MatPlotLib:
pip install matplotlib- Needed for 3,4 - OpenCV:
pip install opencv-python- Needed for 4 - PyTesseract:
pip install pytesseract- Needed for 4 - Pillow :
pip install Pillow- Needed for 4 - NumPy:
pip install numpy- Needed for 4