Cheating in a word game using Python

— 1 minute read

Ruzzle is a popular mobile game, where players must swipe across a 4x4 grid of letters to find as many words as possible.

I thought it was a nice challenge for a developer to build a program able to play it. I used a Python library to compare image similarity to read the letters (simpler setup than OCR) and try to walk the resulting graph using entries from a word list, previously ordered from longest to shortest to score more points. For each possible found path, a mouse emulation library was used to simulate the mouse dragging across the grid.