- Create a game of Rock, Paper Scissors
- Game must have 5 rounds
- Game must not break
-
Create computerPlay function
- Randomly return 'Rock', 'Paper', or 'Scissors'
-
Write playRound function to play a single round of rock, paper scissors
- Include 2 parameters - playerSelection and computerSelection
- Return a string that declares the winner of the round
- Make the playerSelection parameter case-insensitive Case sensitivity
- Return the results
-
Create game() function
- Call playRound() inside this function
- Use loop to make 5 round game
- Use console.log() to declare winner at the end
-
Use prompt() to get input from the user