Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Javascrip and HTML start implementing the rock-paper-scissors game by displaying three buttons with images of the hand signs. When you click on each button,

Using Javascrip and HTML start implementing the rock-paper-scissors game by displaying three buttons with images of the hand signs. When you click on each button, it must display your selection on the console log. Fig. 1 shows a web page that illustrates this behavior. As part of this first partial solution, you must implement the Cascade Style Sheet required to display the buttons and their images adequately formatted. All three button HTML elements must execute the function play included in your JavaScript file. The function play receives the buttons name the user clicked on as an argument.image text in transcribedimage text in transcribedimage text in transcribedFinish buttons.html and function play(clickedButton) {

You start implementing the rock-paper-scissors game by displaying three buttons with images of the hand signs. When you click on each button, it must display your selection on the console log. Fig. 1 shows a web page that illustrates this behavior. Rock-Paper-Scissors Game Click on any hand sign to play Inspect the console for output. Fig. 1. Behavior of the web page buttons.html after clicking the paper button. As part of this first partial solution, you must implement the Cascade Style Sheet required to display the buttons and their images adequately formatted. All three button HTML elements must execute the function play included in your JavaScript file. The function play receives the button's name the user clicked on as an argument. You will find the three hand-sign images on Canvas->Files->Projects->project-2->images. 1234567891011functionplay(clikedButton){}//donoteditorremovethefollowinglines,theyarerequiredtoperformtheunitteststry{module.exports.play=play;}catch(err){console.log(""rps-b.jsfunctionsloaded")}

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

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions