Skip to content

Hitscotty/Puzzle-8

Repository files navigation

Code-To-Work: Puzzle 8

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.

Tour of the code

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

About

A game where the idea is to slide tiles around to form an image taken by the camera.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages