Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

javascript Create a web page to play a simple guessing game. To start the game, the program picks a secret number randomly between 1 and

javascript

Create a web page to play a simple guessing game. To start the game, the program picks a secret number randomly between 1 and 100. The page contains a text box in which the player enters a number, and a button labeled Guess. When the player clicks on the Guess button, the program reports whether the guess is high, low, or equal to the secret number. If it is high or low, the player is told to guess again. If it is equal to the secret number, the game ends and a new game is started, with a new secret number. Implement a clock time along with a sound and sound effects within the game play

Write the JavaScript in an external file, and must use proper event-driven style if possible. The reports to the player are to be done by modifying the content of an element (such as a paragraph or div) in the page. Do not use the document.write method.

Add a guess limit. If the player uses up the maximum number of guesses, the page reports that the player has lost then reports what the secret number was, and starts a new game. The number of guesses left should be reported to the player on each round. Enjoy!!!!!! Please be creative and extra points will be awarded to all whom displayed creativity along with a great CSS layout.

I need a one file (.html with

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

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions

Question

=+2 Why are so many countries bothered by their brain drains?

Answered: 1 week ago