jonadsimon / wonder-words-generator

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

Add "Addition of hidden word caused a word-doubling event" logic to main retry loop #74

Open jonadsimon opened 2 years ago

jonadsimon commented 2 years ago

Currently even when the board is successfully constructed, it's possible for the addition of the hidden word to introduce a last-minute word-doubling. Rather than crashing, this should re-enter the retry loop since likely another solution can be found.

Example: python make_puzzle_v2.py "hamburger" "annihilation" --packing-constant=1.22 --strategy=median --pivot=max_freq --optimize-words