-
Notifications
You must be signed in to change notification settings - Fork 44
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
Wave 1 #16
base: master
Are you sure you want to change the base?
Wave 1 #16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jm-rives A good start on it. Wave 1 looks good, although I think the individual .score
method should consider the 7-letter word bonus as well.
F: 4, H: 4, V: 4, W: 4, Y: 4, | ||
K: 5, | ||
J: 8, X: 8, | ||
Q: 10, Z: 10 // NO SEMICOLON! | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice use of a JavaScript object as a hash!
highestScoringWord = word; | ||
// if there is a word that uses all seven tiles award that word an additional 50 pts | ||
highScore = currentWordScore + 50; | ||
// if there is a tie, prefer the highest scorring word made with the fewest tiles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the score
function already count in the 50 point 7-letter-word bonus?
@CheezItMan