Skip to content

Wave 1 - #16

Open
jm-rives wants to merge 8 commits into
Ada-C6:masterfrom
jm-rives:wave_1
Open

Wave 1#16
jm-rives wants to merge 8 commits into
Ada-C6:masterfrom
jm-rives:wave_1

Conversation

@jm-rives

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

Copy link
Copy Markdown

@CheezItMan CheezItMan left a comment

Copy link
Copy Markdown

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.

Comment thread scrabble.js
K: 5,
J: 8, X: 8,
Q: 10, Z: 10 // NO SEMICOLON!
};

Copy link
Copy Markdown

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!

Comment thread scrabble.js
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

Copy link
Copy Markdown

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