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

yahallo #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

yahallo #9

wants to merge 1 commit into from

Conversation

shirokane
Copy link

No description provided.

//TODO: randomly choose between 'rock', 'paper', or 'scissors'
var options = ["rock","scissors","paper"];
var random = Math.floor(Math.random() * (0 - 3 + 1)) + 0;
return options[random];
Copy link
Member

Choose a reason for hiding this comment

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

This looks promising. just make sure to review the number you assign into random, it's a little off. (btw, you can have negative nums in JS too, like -3)

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