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

Wave 1 #16

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Wave 1 #16

wants to merge 8 commits into from

Conversation

jm-rives
Copy link

@jm-rives jm-rives commented Nov 18, 2016

Copy link

@CheezItMan CheezItMan left a 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!
};

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

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?

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

Successfully merging this pull request may close these issues.

3 participants