Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

At the end we have to solve the puzzle SUBJECT You will implement a puzzle using HTML, CSS, Javascript and jQuery (don't use DOM API).

image text in transcribed
At the end we have to solve the puzzle image text in transcribed
image text in transcribed
SUBJECT You will implement a puzzle using HTML, CSS, Javascript and jQuery (don't use DOM API). The system will divide the image into 9 pieces, and distribute them randomly in "Pieces" part. The user tries to bring the pieces together to form the orginal image. She selects a piece in "Pieces" part by clicking on it and places it onto appropriate place on the "Puzzle" part. When all pieces form the correct image, it displays "Congratulations" text. If the user does not solve the puzzle by herself, she can see the solution by clicking on "Hint" button. Watch the given animation file (Watch Me.mp4) that shows what you are supposed to do. Use your own picture. Its size would be 300x300pixels, each piece is 100x100pixel. Grading Criteria: 1. (20Pts) Design the initial appearance of the page. Use at least one google font. See Figure 1. 2. (5Pts) "Hint" button changes its appearance when the mouse enters and exits. 3. (15Pts) Distribute 9 pieces into "Pieces" region randomly. 4. (5Pts) When you click on (select) a piece in the "Pieces" region, mark its border with yellow color. 5. (10Pts) After selecting a piece, if you click an empty cell in the "Puzzle" region, show the selected piece in the clicked cell. Fade out the selected piece in "Pieces" region. 6. (10Pts) After selecting a piece, if you click a filled cell in the "Puzzle" region, swap the pieces. 7. (10Pts) If you click a cell with an image in the Puzzle without any selection, remove it from the clicked cell and show it in "Pieces" region at its initial position. (Send the image back to Pieces region) 8. (15Pts) If you place all the pieces in the "puzzle" region, "Congratulation" message appears. 9. (10Pts) If you click "Hint" button, it displays numbers in "pieces" and "puzzle" part, which shows the correct mapping from "pieces" to "puzzle" part. This means, it gives hints about the solution. If you click "Hints" again, it hides the numbers Orginal Image Pieces Puzzle Hints Orginal Image Pieces Puzzle 9 9 Hints

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_2

Step: 3

blur-text-image_3

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

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions