-
Notifications
You must be signed in to change notification settings - Fork 41
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
Carets -- Guillermina #34
base: master
Are you sure you want to change the base?
Conversation
… play functions to use this array to DRY up methods
… of sorted array in other methods
JS ScrabbleWhat We're Looking For
I'm really glad to read about your journey refactoring through your comprehension questions! I'm wondering why you went with the approach you did with nested for loops in the score method. I like the Word class! Unnecessary for this problem, but still very clean. I love the sorting (and custom sorting function) you did for highestScoreFrom For the Scrabble.Player class, instead of wrapping the assignments in the constructor in the if that runs the validation/throws the exception, it may be better to write code like this instead:
I'll make the same suggestion for Scrabble.Player's play(word) method. If you need to catch a condition just for one line, consider making it a check that returns out in one line:
Nice use of reduce() |
JS Scrabble
Congratulations! You're submitting your assignment!
Comprehension Questions