Skip to content

Emily's JS Scrabble - #19

Open
eabrash wants to merge 6 commits into
Ada-C6:masterfrom
eabrash:master
Open

Emily's JS Scrabble#19
eabrash wants to merge 6 commits into
Ada-C6:masterfrom
eabrash:master

Conversation

@eabrash

@eabrash eabrash commented Nov 18, 2016

Copy link
Copy Markdown

No description provided.

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

eabrash commented Nov 18, 2016

Copy link
Copy Markdown
Author

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

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

Comment thread scrabble.js
}
}
}
return highest[0];

Copy link
Copy Markdown

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!

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

Copy link
Copy Markdown

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