jonadsimon / wonder-words-generator

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

Center words on most-common letter #64

Closed jonadsimon closed 2 years ago

jonadsimon commented 2 years ago

Centering words on their center-letter helped a lot, so maybe augmenting this to be something like "most common non-edge letter" would help even more?

Would this help anywhere on the board other than the very center? Unclear.

"Most common letter" is the letter that is shared the most times by the most other words. Simple approx: letter that is contained within the most other words

In case the are multiple "most common" letters within a given word, bias towards the one closer to the word's center

I think this might be genuinely helpful... is finally a smart "preprocessing" step.

jonadsimon commented 2 years ago

Implemented, is tentatively helpful. Certainly leads to smarter starts-of-boards.

Need to clean up optimization file before check-in

jonadsimon commented 2 years ago

Checked in as the max_freq pivot type in https://github.com/jonadsimon/wonder-words-generator/commit/be545e1497b8b697a427c83eff615f5ae636374f