Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify letter generation logic #102

Merged
merged 2 commits into from
Aug 1, 2022
Merged

Simplify letter generation logic #102

merged 2 commits into from
Aug 1, 2022

Conversation

James-Quigley
Copy link
Collaborator

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

Copy link
Collaborator

@chuckdries chuckdries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New code is a lot more legible to my eyes as well. Nice work!

@chuckdries chuckdries merged commit d56010a into main Aug 1, 2022
@chuckdries chuckdries deleted the fix/100 branch August 1, 2022 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backend freezes but doesn't fail health check?
2 participants