Answered step by step
Verified Expert Solution
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).
- 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.
- The function attached to this button can "setup" the rest of the game.
- 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.
- An input field for the "number of rounds to play"
- 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.
- The "overall winner" should be displayed.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started