Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

html , css and javascript Part 2. This part is a game that the user can play. The game starts with just two buttons Start

image text in transcribed

html , css and javascript

Part 2. This part is a game that the user can play. The game starts with just two buttons "Start Game" and "Stop Game". When the user clicks on the button "Start Game", a prompt window appears and asks the user to choose an integer between 0 and 9. Then every two second, three random numbers (between 0 and 9) will be generated and flashing on the screen. The three random numbers should not repeat (i.e. can't have repeating numbers -4 7 4). The user has to click on the number that was previously chosen to win 1 point. If the user clicks on the wrong number, then 1 point is deducted. Therefore, the game score can become negative if the user clicks on many wrong numbers. The number that the user chosen is displayed in green. The game score is displayed in red. The three random numbers must be in red, orange and blue color. The game score must be updated in real- time as the user playing the game. Start Game Stop Game Your chosen number is: 7 Your score so far:0 4 7 0 When the user clicks on the button "Stop Game", then the game is stopped. The screen must be remain the same with the chosen number, the current score, the last 3 random numbers unchanged. When the user clicks on the "Start Game", then a new game is generated. A prompt window appears and asks the user to choose a new number. And then the score will be reset to 0

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 Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

Students also viewed these Databases questions

Question

What is the purpose of the Quality Control department?

Answered: 1 week ago