Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Below that, add 20 image views to the storyboard of the app. Each will be 93 x 93 UI display units in size. Arrange them

Below that, add 20 image views to the storyboard of the app. Each will be 93 x 93 UI display units in size. Arrange them in a 4 (wide) x 5 (high) matrix such that the image views touch one another to look like a larger image. Each image view will have a tap gesture recognizer. Populate the image views with the small images you created earlier. These images will be scaled to exactly fill the image views. Below the image view matrix, add two buttons: One has the title label Shuffle and the other has Show Answer. If you wish, you can visit a site such as DaButtonFactory to create custom images for use on your buttons; but this is not a requirement. (To display the image instead of the title label for a button, delete the text of the title label in the inspector and select an image in the inspector.) Change the background color of the root view to a color that works well with your puzzle image and buttons.

. At any time during usage of the app, if the user taps the Show Answer button, show the solution to the puzzle (i.e., what the image looked like when the app started) and change the button text to Hide Answer. When the user taps the Hide Answer button, restore the button text to Show Answer and restore the puzzle to its state before Show Answer was tapped. When the user taps the Shuffle button, shuffle the puzzle tiles. Note: not all arrangements of the tiles are solvable. You must shuffle the tiles in a way that is solvable by the user. The easiest way to shuffle the tiles in a solvable way is to have the app randomly choose a tile adjacent to the hole and then exchange the hole and the chosen tile. Repeat this operation some random number of times within a range (say, 10 25). The user taps on a tile to attempt a move. If the user taps a tile adjacent to the hole, exchange the hole and the tapped tile. If the user taps the hole or a tile that is not adjacent to the hole, do nothing. If the user solves the puzzle, indicate this in some way. The simplest way to do this would be to Change the text of the Shuffle button to something such as Solved! Shuffle Again?, in a brightly contrasting color. Then, if they tap the button to play again, Change the button text back to its original text and color. iOS APP using Xcode 14

please help me i will give thumbs up!!!

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

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

1844804526, 978-1844804528

More Books

Students also viewed these Databases questions

Question

Define workplace ergonomics.

Answered: 1 week ago

Question

=+ how might this lead to faster growth in productivity?

Answered: 1 week ago