Skip to content

Conversation

billyjoker
Copy link

Hi, i've downloaded your code and it works great!! But i have a issue, i do not know how to check when the puzzle is solved, Is there any check in your code? How could i add this feature?

Thx in advance!!

@thillerson
Copy link
Owner

I don’t have a check in the code. Someone else asked this too. What I would do is keep some sort of concept of order to the image slices, and each time a piece is moved, check to see if the slices are all in the correct order.

Tony Hillerson

On Tuesday, April 8, 2014 at 1:42 AM, billyjoker wrote:

Hi, i've downloaded your code and it works great!! But i have a issue, i do not know how to check when the puzzle is solved, Is there any check in your code? How could i add this feature?
Thx in advance!!
You can merge this Pull Request by running
git pull https://github.com/destil/Android-Slider-Puzzle master
Or view, comment on, or merge it at:
#1
Commit Summary
Renamed package, use full width for the puzzle.
TileSlicer refactoring and decrease memory consumption
borders to tiles
refactoring, commenting
better click handling
actionbarsherlock integration
About screen, new icon, refactoring for making saving state possible
preserving tile order when orientation changes
greatly improved responsivness of drag
gray background, better click detection
for SDK < 11
proper click handling on Android 2.3
final cleaning

File Changes
M .classpath (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-0) (16)
M .project (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-1) (66)
M .settings/org.eclipse.jdt.core.prefs (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-2) (6)
M AndroidManifest.xml (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-3) (15)
M project.properties (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-4) (3)
A readme.pdf (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-5) (0)
M res/drawable-hdpi/ic_launcher.png (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-6) (0)
A res/drawable-hdpi/settle_up.png (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-7) (0)
D res/drawable-ldpi/ic_launcher.png (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-8) (0)
M res/drawable-mdpi/ic_launcher.png (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-9) (0)
A res/layout/activity_about.xml (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-10) (53)
A res/layout/activity_main.xml (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-11) (14)
D res/layout/main.xml (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-12) (9)
A res/menu/main_menu.xml (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-13) (13)
A res/values/colors.xml (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-14) (6)
M res/values/strings.xml (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-15) (21)
D src/com/tackmobile/GameTile.java (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-16) (55)
D src/com/tackmobile/GameboardView.java (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-17) (477)
D src/com/tackmobile/SliderPuzzleActivity.java (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-18) (13)
D src/com/tackmobile/TileServer.java (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-19) (57)
A src/cz/destil/sliderpuzzle/data/Coordinate.java (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-20) (48)
A src/cz/destil/sliderpuzzle/ui/AboutActivity.java (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-21) (46)
A src/cz/destil/sliderpuzzle/ui/GameboardView.java (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-22) (578)
A src/cz/destil/sliderpuzzle/ui/MainActivity.java (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-23) (66)
A src/cz/destil/sliderpuzzle/ui/TileView.java (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-24) (112)
A src/cz/destil/sliderpuzzle/util/TileSlicer.java (https://github.com/thillerson/Tile-Puzzle-Android/pull/1/files#diff-25) (142)

Patch Links:
https://github.com/thillerson/Tile-Puzzle-Android/pull/1.patch
https://github.com/thillerson/Tile-Puzzle-Android/pull/1.diff


Reply to this email directly or view it on GitHub (#1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants