Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Generative Artificial Intelligence For Project Management With Aws

Authors: Timothy Krimmel

1st Edition

B0CQV9KWB8, 979-8872627197

More Books

Students also viewed these Databases questions

Question

2. Outline the business case for a diverse workforce.

Answered: 1 week ago