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

Add difficulty level #3

Open
Errolyn opened this issue May 15, 2016 · 1 comment
Open

Add difficulty level #3

Errolyn opened this issue May 15, 2016 · 1 comment

Comments

@Errolyn
Copy link
Owner

Errolyn commented May 15, 2016

Add difficulty levels.

Easy: word length 4-7 letters; not using letters xz
Medium: word length 7-10 letters; not using xz
Hard: word length 7-13; no letter limitations
Extreme: word length > 13 letters; no letter limitations

@Errolyn
Copy link
Owner Author

Errolyn commented May 15, 2016

The random word API will allow you to choose a word length [len]. For each of the difficulty options there will need to be logic added to randomly pick a word length each time, then the incoming word will need to be checked for letters that should be avoided.

It might be a good idea to get a few words right up front to help avoid repeated calls that could slow down the code. Then have logic to see if any of the words in the array meet the difficulty rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant