-
Notifications
You must be signed in to change notification settings - Fork 0
Rock Paper Scissors #5
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
base: gh-pages
Are you sure you want to change the base?
Conversation
| } | ||
|
|
||
| // 1. User1 input of rock, paper, or scissors. | ||
| const choice = ['rock', 'paper' , 'scissors']=>{ |
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.
invalid syntax
| }; | ||
|
|
||
| // 2. User2 input of rock, paper, or scissors. | ||
| const choice = ['rock', 'paper' , 'scissors']=>{ |
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.
invalid syntex
| const user2 = 'player2'; | ||
|
|
||
|
|
||
| function rockPaperScissors(hand1, hand2) { |
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.
parameters that are being used is hand1 and hand2. The function is also not closed.
| }; | ||
|
|
||
| // 5. If User1 input is 'rock' and User2 input is 'paper', User2 wins. | ||
| if (user1 === "rock") { |
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.
if statement not closed
| }; | ||
|
|
||
| // 4. If User1 input is 'rock' and User2 input is 'scissor', User1 wins. | ||
| if (user1 === "rock") { |
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.
if statement not closed
|
|
||
| // 5. If User1 input is 'rock' and User2 input is 'paper', User2 wins. | ||
| if (user1 === "rock") { | ||
| if (user2 === "paper") { |
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.
if statement not closed
| } | ||
|
|
||
| // 7. If User1 input is 'paper' and User2 input is 'rock', User1 wins. | ||
| if (user1 === "paper") { |
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.
if statement not closed
| } | ||
|
|
||
| // 8. If User1 input is 'paper' and User2 input is 'scissors', User2 wins. | ||
| if (user1 === "rock") { |
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.
if statement not closed
Checkpoint Rubric
This is the rubric that your instructor will use to grade your checkpoints. Please do not edit.
Checkpoint 1
Checkpoint 2
Checkpoint 3