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

Lauren Brink #31

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

Lauren Brink #31

wants to merge 23 commits into from

Conversation

laurenfb
Copy link

apparently I forked from AdaGold instead of AdaC6, sorry! I hope that doesn't mess things up.

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.

Great work here Lauren. I'm impressed how you put together testing on your own.

Nice work. You look ready for Capstone!

totalScore: function(){
var total = 0
this._plays.forEach(function(play){
total += Scrabble.score(play);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just FYI the forEach function is depreciated.

} else {
return false
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice use of a regular expression to check to see if it's a valid scrabble word.

it('scrabble can score a list of words, none of which are bingos, correctly', function() {
expect(Scrabble.highestScoreFrom(["uuuuuu", "you", "cat", "syzygy" ])).toBe("syzygy");
});

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, in terms of Scrabble what's a bingo?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bingo is a word that uses all 7 letters or more! Highly recommend this book. https://www.amazon.com/Word-Freak-Heartbreak-Obsession-Competitive/dp/0142002267

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