-
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
Lauren Brink #31
base: master
Are you sure you want to change the base?
Lauren Brink #31
Conversation
Wave 1 complete
…hat that will work better with player module
Wave 2 booyah
…gth but same score
implement Jasmine & some baseline tests for Scrabble
add error handling to wave one, and then tests to go with it
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.
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); |
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.
Just FYI the forEach function is depreciated.
} else { | ||
return false | ||
} | ||
} |
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.
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"); | ||
}); | ||
|
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.
Just curious, in terms of Scrabble what's a bingo
?
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.
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
apparently I forked from AdaGold instead of AdaC6, sorry! I hope that doesn't mess things up.