02. Rock Paper Scissors πŸ‘©β€πŸŽ“πŸ‘¨β€πŸŽ“

Rock, Paper, Scissors

In this activity, you will work with a partner to build a rock-paper-scissors game using only JavaScript.

Rules for rock-paper-scissors

  • Rock: wins against scissors, loses to paper, and ties against itself.
  • Paper: wins against rock, loses to scissors, and ties against itself.
  • Scissors: wins against paper, loses to rock, and ties against itself.

RPS-Example-Picture

Instructions

  • Begin the process of coding out the rock-paper-scissors game.

  • As a user:

    • I want to play Rock, Paper, Scissors against an automated opponent.
    • I can enter R, P, or S to signify my choice of rock, paper, or scissors.
    • I expect the computer to choose R, P, or S in return.
    • I want the option to play again whether I win or lose.
    • I want to see my total wins, ties, and losses after 10 rounds.
  • The computer’s selection must be random to ensure a fair game.

  • Follow your pseudocode as much as you can, and if you get stuck don’t worry, this is a challenging assignment.

πŸ’‘ Notes

Refer to the documentation:


βœ… Solutions

Solutions Click Here