Share My Creation Puzzle 15

Hi all,
another logic game from me is Puzzle 15.
There is 15 numbers and 16 spaces. You have to arrange number to desired order by moving them with as little number of moves as possible. If there is a free space next to number, move it simply by touching it. There is also a Shuffle button for random shuffle of layout.
Link is here.

Source code with a few comments added.
 

Attachments

  • Nahled1.jpg
    Nahled1.jpg
    8.8 KB · Views: 11,552
  • Nahled2.jpg
    Nahled2.jpg
    9 KB · Views: 773
  • Nahled3.jpg
    Nahled3.jpg
    15 KB · Views: 723
  • Puzzle15.zip
    160 KB · Views: 2,881
Last edited:

giannimaione

Well-Known Member
Licensed User
Longtime User
please,
move Shuffle button to center.
on my device is not visible
 

pavelpivo

Member
Licensed User
Longtime User
Do you see the moves counter?
What resolution of display you have and what orientation you use?
 

cnicolapc

Active Member
Licensed User
Longtime User
Hi,
Very nice and it works fine on my Desire HD.
If one day you'll want to share code or part will certainly be interesting.
Bye
Nicola
 

pavelpivo

Member
Licensed User
Longtime User
Hi all,
as a few of you requested source code, I decided to publish it. You can find it as an attachment to first post. There are a few comments in code, if you want to ask something, please feel free to do so.
I know that the game can be done better, but I wanted to try screen rotate and a kind of random generator like in game, so there is some not optimal code, but game is working.
If you find this useful, you can install game from market and click a few times on ad. I and Google will thank you. :D
 

dagnabitboy

Active Member
Licensed User
Longtime User
Nice job! It runs well on my Vizio VTAB, resolution width 768, height 948 (with title bar). I used to play this game as a kid (about a 100 years ago), a little plastic puzzle you could slide the pieces around in. The bottom row of buttons gets clipped a little, but otherwise it works very well. I've attached a screenshot for you:
screenshot_puzzle15.jpg
 

Mansie

Member
Licensed User
Longtime User
Sliding Tile puzzle

Havent seen your code - but I've done these types of puzzle in software before and if you randomise the tile positions to start a new game (dunno if you do this) , it is possible to generate a puzzle that is impossible to solve!
 
Top