Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LR, UTHIVETZILY L WWOIIgEUng C5IT128: Introduction to Web Technology Part 2: This part is a game that the user can play. The game starts with

image text in transcribed
LR, UTHIVETZILY L WWOIIgEUng C5IT128: Introduction to Web Technology Part 2: This part is a game that the user can play. The game starts with the following screen in a table structure as shown below. Your chosen number: Current SCGFE' | | The player will pick a target number from a list box showing 0 to 9 (inclusive 0 and 9). The initial value of =core is zero and it must be shown as \"0" in the box. When the player clicks on the \"3tart Game\" button, in every 2 seconds, three random numbers will be generated and displayed on the screen (e.g. 3 1 9) at the position as shown above. The three numibers must not repeat at the same time (i.e. can''t have repeating numbers e g. 3 1 3). After starting a game, you can't change the chosen number. To play the game, the player must click on the randomly generated number that was chosen earlier to win 4 points. If the player clicks on the wrong number, 3 points are deducted. Therefore, the game score can become negative if the player clicks on many wrong numbers. For example, if the chosen numberis \"5" and the randomly generated characters are 5", "2" and \"3", clicking on the 1 number \"5" will gain 4 points. Clicking on the character \"9" will result in losing 3 points. The current score is displayed on the top right corner of the table. It must be updated in real-time as the player plays the game. Try 1o have the font size, foreground and background colours as dose as possible to what are shown above. When the player clicks on the \"5top Game\" button, the game is stopped. The screen must remain the same with the chosen number, the current score and the last 3 random numbers unchanged. When you click on \"start\" game again, it will reset the score to 0 and start the random number ganeration again. You can also change the chosen number to a new number

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

Big Ideas Math A Common Core Curriculum Blue

Authors: Ron Larson, Laurie Boswell

1st Edition

1608402282, 978-1608402281

More Books

Students also viewed these Mathematics questions