Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

it has to be done in javascript 3 Create a function named function updateScoreTallyI(){...} Modify the #score paragraph. It should look something like this :

it has to be done in javascript

image text in transcribed

3 Create a function named function updateScoreTallyI(){...} Modify the #score paragraph. It should look something like this : v CPU: j.e. if username is Ben and the userScore is 3 and the cpuscore is 5, it would change the scoreParagraph to Ben: 3 v CPU: 5 you can get the username , and score object from the game object. game.username , game.score 4 Create a function named function updateGameHistoryUI(){...} it makes use of the class property gameHistoryLog. it clears the current game history paragraph and replaces it with the content of the array. 5 add an Event Listener to the go-button on the click event. get the user Selection from the select call the play(user Selection) of the game object. update the text of scoreParagraph using the updateScoreTallyUI() function update the gameHistoryParagraph using the updateGameHistoryUI() function . 3 Create a function named function updateScoreTallyI(){...} Modify the #score paragraph. It should look something like this : v CPU: j.e. if username is Ben and the userScore is 3 and the cpuscore is 5, it would change the scoreParagraph to Ben: 3 v CPU: 5 you can get the username , and score object from the game object. game.username , game.score 4 Create a function named function updateGameHistoryUI(){...} it makes use of the class property gameHistoryLog. it clears the current game history paragraph and replaces it with the content of the array. 5 add an Event Listener to the go-button on the click event. get the user Selection from the select call the play(user Selection) of the game object. update the text of scoreParagraph using the updateScoreTallyUI() function update the gameHistoryParagraph using the updateGameHistoryUI() function

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_2

Step: 3

blur-text-image_3

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

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago