Closed jonadsimon closed 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
Duplicate: https://github.com/jonadsimon/wonder-words-generator/issues/23
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