Here is a physical example of this classic game:
![classic puzzle 15]If you have not seen this game before, each tile can slide either horizontally or vertically into the empty space in order to reorder the tiles.
For our version of this game, we will not be using numbered tiles but a photo taken by the user with the phone’s camera. This is what the UI will look like with an image of a part of Google’s (old) logo:
![screenshot]You can read more about the game on Wikipedia.
The starter code for this activity is composed of four classes:
-
`PuzzleActivity` which is the lone activity for this program:
- `onCreate`: in addition to the boilerplate, the given implementation programmatically adds the `PuzzleBoardView` object to the UI.
- `onCreateOptionsMenu`, `onOptionsItemSelected`: just boilerplate
- `dispatchTakePictureIntent`: handler for the `Take Photo` button
- `onActivityResult`: handler for the system call when the photo taking is complete.
-
shuffleImag