jonadsimon / wonder-words-generator

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

Traverse letter by frequency #9

Closed jonadsimon closed 2 years ago

jonadsimon commented 2 years ago

Letters will be traversed in the other of the letters array, therefore order the enum from most-frequent to least-frequent to make it more likely the algorithm will stumble on the right letter faster

jonadsimon commented 2 years ago

Don't know if this actually made a difference, but redefined a (static) Letters enum in decreasing letter frequency order. Used frequencies as they appear in words in the dictionary, not as they appear in language, since the latter overweights "T" because of all of the the's, it's, there's, etc