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

finished! #23

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

finished! #23

wants to merge 20 commits into from

Conversation

jlikesplants
Copy link

Aaargh. I finished this at 3pm yesterday and forgot to turn it in. Sorry!


Player.prototype.hasWon = function() {
var total = Player.total_score;
if (total >= 100) {

Choose a reason for hiding this comment

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

you could consider a ternary operator here! :)

Copy link

@jennaplusplus jennaplusplus Jun 21, 2016

Choose a reason for hiding this comment

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

just realized- you could one better than ternary here! you can just do: return (total >= 100);, which will be a boolean :D

@jennaplusplus
Copy link

Nice job! I found your comments super helpful as I made my way through the js functions. I think you can simplify some of your scoring code, but what you have works as it's supposed to. Good descriptive tests- just make sure they're testing what you think they are.

@jennaplusplus
Copy link

💯

@jlikesplants
Copy link
Author

Thanks so much, Jenna! Those were very helpful comments and I appreciate
your time. Also, it's just really great to have someone tell me nice things
as well as constructive suggestions. :-D Positive reinforcement heeeyy.

On Mon, Jun 20, 2016 at 9:24 PM, Jenna Nichols [email protected]
wrote:

💯


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#23 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AOmsiT8NsnvSK7HwehWT4k27A72-QKSeks5qN2eOgaJpZM4I0fBu
.

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

Successfully merging this pull request may close these issues.

2 participants