ViciousFish / buzzwords

A browser based word strategy game featuring frictionless link-based multiplayer. Try it today!
https://buzzwords.gg
Apache License 2.0
48 stars 9 forks source link

Simplify letter generation logic #102

Closed James-Quigley closed 2 years ago

James-Quigley commented 2 years ago

Fixes #100.

Letter generation logic was overly complex. Instead of generating every possible combination of tiles and checking it against the word dictionary, flip the script. Iterate over the dictionary and check if the word can be made. Gets rid of a lot of complexity and speeds things up quite a bit