Solving Boggle (2021)
benknoble.github.io·2h·
Discuss: Hacker News
🧮Z3 Solver
Preview
Report Post

8.2

Having recently read Jay McCarthy’s A Boggle Solver, and remembering my brother’s similar C assignment for an NC State course, I decided to give it a go.

The part I really remember from working with my brother was the flood-fill "is the input a word in the grid" algorithm. This relates to McCarthy’s solver, which generates words with a similar flood-fill and tests for their presence in a trie-like dictionary.

Notes: according to OEIS: Number of simple directed paths on an n X n king graph, there are 12029640 possible paths in a 4x4 Boggle board. The first version of the racket generator, when asked to generate all words with length between 0 and 16 characters, finds exactly that many word…

Similar Posts

Loading similar posts...