jonadsimon / wonder-words-generator

Generates WonderWords puzzles
Apache License 2.0
2 stars 0 forks source link

Add optimizer constraint that number of missing letters must be equal to some hidden word length #24

Closed jonadsimon closed 2 years ago

jonadsimon commented 2 years ago

Currently optimization can fail when the number of missing letters does not equal the length of any hidden word.

Add a constraint to the optimizer to enforce that the number of missing letters must equal some missing word length

Print a message when this condition is triggered so we know whether to increment vs decrement the packing constant

jonadsimon commented 2 years ago

Duplicate: https://github.com/jonadsimon/wonder-words-generator/issues/23