Question: Requirements Your program should create a board with the tiles out of order. a . The user's goal is to arrange the tiles in sequential

Requirements
Your program should create a board with the tiles out of order.
a. The user's goal is to arrange the tiles in sequential order row by row.
b. Using the DOM and the onclick event, write a script that allows the user to swap the positions of the open position and an adjacent tile. [Hint: The onclick event should be specified for each table cell.]
Your program should determine when the game is over, and then prompt the user to determine whether to play again. If so, scramble the numbers. [Hint: using the Math.random method.]
Your program should allow a user to quit the current game and start a new game (create a "New Game" button for it).
Your program should allow a user to create a simple game with only one tile out of position so that a user can solve the puzzle with one move (create a "Simple Game" button for it).
Your program should count the number of moves a user has already made in the current game.
Your program should record the amount of time a user has already spent on the current game.
Your program must be written in Javascript.
Hint(s):
Helpful video
 Requirements Your program should create a board with the tiles out

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!