Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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. (See slide JavaScript presentation posted on ICollege for the help.)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started