timpalpant / LittleBoxes

A crossword solver
GNU General Public License v3.0
1 stars 0 forks source link

Add PhraseDictionary #21

Closed timpalpant closed 8 years ago

timpalpant commented 8 years ago

Add a PhraseDictionary that can be used to query for word phrases of a given length and pattern (#9).

The word phrases are constructed by querying an underlying Dictionary for all permutations of words that match the pattern and have the correct total length.

The hope is that by the time this is used, enough of the puzzle has been filled in already that the pattern is fairly restrictive and there aren't too many combinations.

jpalpant commented 8 years ago

I foresee combinatorial explosions

CircleCI is awesome

How about new dictionary tests for PhraseDictionary?

timpalpant commented 8 years ago

You foresee correctly :100:

Added some tests