Nov 12, 2011 Replies: 11 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 8.8 KB · Views: 12,175 Nahled2.jpg 9 KB · Views: 1,141 Nahled3.jpg 15 KB · Views: 1,107 Puzzle15.zip Puzzle15.zip 160 KB · Views: 3,250 Last edited: Dec 17, 2011 Click to expand...
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.
Gianni M Well-Known Member Licensed User Longtime User Nov 13, 2011 #2 please, move Shuffle button to center. on my device is not visible
P pavelpivo Member Licensed User Longtime User Nov 13, 2011 #3 Do you see the moves counter? What resolution of display you have and what orientation you use?
C cnicolapc Active Member Licensed User Longtime User Nov 13, 2011 #4 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
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
Gianni M Well-Known Member Licensed User Longtime User Nov 13, 2011 #5 pavelpivo said: Do you see the moves counter? What resolution of display you have and what orientation you use? Click to expand... resolution is 240 x 320 in portrait i see moves counter
pavelpivo said: Do you see the moves counter? What resolution of display you have and what orientation you use? Click to expand... resolution is 240 x 320 in portrait i see moves counter
P pavelpivo Member Licensed User Longtime User Nov 13, 2011 #6 giannimaione said: resolution is 240 x 320 in portrait i see moves counter Click to expand... I have tested it on 320x480 and 480x800 devices. I will create myself 240x320 emulator and try to solve this issue. Thank you for report.
giannimaione said: resolution is 240 x 320 in portrait i see moves counter Click to expand... I have tested it on 320x480 and 480x800 devices. I will create myself 240x320 emulator and try to solve this issue. Thank you for report.
P pavelpivo Member Licensed User Longtime User Nov 14, 2011 #7 cnicolapc said: 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 Click to expand... Thank you, what part are you interested in? This program is really simple.
cnicolapc said: 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 Click to expand... Thank you, what part are you interested in? This program is really simple.
P pavelpivo Member Licensed User Longtime User Nov 18, 2011 #8 giannimaione said: resolution is 240 x 320 in portrait i see moves counter Click to expand... There is an updated version on market. Shuffle button should be now visible on your device aside the counter.
giannimaione said: resolution is 240 x 320 in portrait i see moves counter Click to expand... There is an updated version on market. Shuffle button should be now visible on your device aside the counter.
P pavelpivo Member Licensed User Longtime User Dec 17, 2011 #9 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.
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 Dec 17, 2011 #10 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:
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:
M Mansie Member Licensed User Longtime User May 9, 2012 #12 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!
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!