-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the word generation logic (#9)
Prior to this change, words were generated randomly from the entire dictionary of available words. For harder difficulties that often led to the vast majority of words only matching by 0-2 characters of like the total 12. This change adds a better word generation algorithm which uses a predefined heuristic of "fun" distributions of word differences across each of the difficulties i.e. on difficulty Foo we specify that N words should differ by 1 letter, M words should differ by 3 letters, and so on and so forth generally following a pattern of "more words match for less characters"
- Loading branch information
Showing
4 changed files
with
280 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.