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

Emily's JS Scrabble #19

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

Emily's JS Scrabble #19

wants to merge 6 commits into from

Conversation

eabrash
Copy link

@eabrash eabrash commented Nov 18, 2016

No description provided.

@eabrash eabrash changed the title Emily Emily's JS Scrabble Nov 18, 2016
@eabrash
Copy link
Author

eabrash 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.

Nicely done Emily, good work on the Tilebag as well.

}
}
}
return highest[0];

Choose a reason for hiding this comment

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

Good work with this one!

for (var i = 0; i < num; i++){
var chosen = Math.floor(Math.random() * this.tiles.length);
tilesPicked.push(this.tiles.splice(chosen, 1)[0]);
}

Choose a reason for hiding this comment

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

Good use of both splice & push to take a letter out of the tilebag and put it into the tilesPicked.

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