worldsproject / android-jigsaw-puzzle-library

Jigsaw Puzzle Generator for Android
GNU General Public License v3.0
59 stars 46 forks source link

puzzle piece groups #3

Open zoracdev opened 10 years ago

zoracdev commented 10 years ago

Hi, When resuming and after "puzzle_data.txt" has been read the puzzle pieces are restored back to their original positions. However any pieces that were previously grouped no longer respond correctly. If you try and move the group only one piece is moved and you can not add it back to the grouping. Any ideas where in the code this could be? thanks Mark

atrus6 commented 10 years ago

It probably is within Puzzle which handles the saving/loading of the puzzle.

zoracdev commented 10 years ago

Saving and loading routines shows the IDs of the pieces that are grouped, so the issue is elsewhere but cannot discover where. Spent all today without luck, any chance someone could test this with default project? On Nov 22, 2013 6:58 PM, "Tim Butram" notifications@github.com wrote:

It probably is within Puzzle which handles the saving/loading of the puzzle.

— Reply to this email directly or view it on GitHubhttps://github.com/worldsproject/android-jigsaw-puzzle-library/issues/3#issuecomment-29099239 .

atrus6 commented 10 years ago

I tested it with the original puzzle game and the bug is present, so it's a problem with the library. When touching, it's only translating the first piece of the group, so it's probably an issue with grabbing all the pieces due to only the piece being selected or the groups not being recreated correctly.

All touch code is in PuzzleView. I really wish I had some time to devote towards fixing it, but I don't :(

himanshu19890 commented 10 years ago

Hello atrus6, I am also facing this issue.I have tried many things to resolve this issue but not able to solve it. I need your help to solve this issue. Please have some time and guide me to solve this issue.

yuvaraj119 commented 8 years ago

I too have this issue @atrus6 and @himanshu19890 but i think this issue is due to orientation. I tested a scenario where first i shuffle the puzzle and then i solve it after solving when i change the orientation the first piece only get move, all other pieces are at same solved position. Did anyone fixed this or have someother solution or source for jigzaw puzzle.