Question: Need help with javascript?? Create a simple Rock, Scissors, Paper, Lizard, Spock game in a web page where YOU play against the computer for a

Need help with javascript??

Create a simple "Rock, Scissors, Paper, Lizard, Spock" game in a web page where YOU play against the computer for a given number of rounds (specified by you).

  1. Create a "web page" with the following components:
    • An input field for the "number of rounds to play"
      • The "number of remaining" rounds should also be displayed somewhere on the screen.
    • A button to "Start" the game play.
      • The function attached to this button can "setup" the rest of the game.
        • For example: initialize counters, show/hide other components, etc.
    • A set of buttons for the player to choose their play:
      • Rock
      • Scissors
      • Paper
      • Lizard
      • Spock
    • An output field where the computer displays it's play.
      • (Same set as above)
    • An output field which displays the result of the current round:
      • For example: Computer won with rock breaking scissors.
  2. The game should end when the number of rounds specified at the beginning have been played.
    • The "overall winner" should be displayed.
      • For example: Human wins after winning 3 of 5 rounds.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!