Shattered and Shuffled
Shattered and Shuffled
This is a really nice challenge. It's quite clear what to do, but it's not trivial to implement. I wish there were more challenges of this quality!
This sounds promising!
Do the filenames of the images mean anything? I didn't look into them when the server accepted the solution shown on the image.
Now if I only could get the hang of Real Simple Access. I have the decoded number, but I can't make heads or tails of it. I'm afraid that the next round of Shattered and Shuffled might show up behind Real Simple Access.
Do the filenames of the images mean anything? I didn't look into them when the server accepted the solution shown on the image.
Now if I only could get the hang of Real Simple Access. I have the decoded number, but I can't make heads or tails of it. I'm afraid that the next round of Shattered and Shuffled might show up behind Real Simple Access.
Find better solution
I did it with my more than 700 lines Java program. But the program is not good enough to solve it directly, and I must correct some wrong answer manual. So I did this boring thing more than 3 hours= =, could anyone tell me how to do it easier?
This was pretty fun!
I had most difficulty getting the edges in place before filling in the rest. By the time I'd tweaked the checks for shape and color enough to get the edges right, the program could fill in the rest on its own. I had to correct a wrong pick twice, after that it was smooth sailing.
250 hours sounds bizarre! My not-so-very-efficient php console app takes about 8 seconds to load in the pieces and their shape/color information in memory, then it takes about 20 seconds per row to match the pieces.
I had most difficulty getting the edges in place before filling in the rest. By the time I'd tweaked the checks for shape and color enough to get the edges right, the program could fill in the rest on its own. I had to correct a wrong pick twice, after that it was smooth sailing.
250 hours sounds bizarre! My not-so-very-efficient php console app takes about 8 seconds to load in the pieces and their shape/color information in memory, then it takes about 20 seconds per row to match the pieces.
Thanks for forcing me to learn how o make interactive graphics in java.
On previous challenges I have used java to transform some picture to another or grab an info from it. Now I have implemented interactive puzzle solver ... and my smaller doughter was ready to help me in chosing best of 2-6 pieces... I was afraid my initial renaming of the pictures would be problem but I have tried to answer what I read on the picture first.
It would not be that difficult to transform my saves to original names anyways.
Nice challenge.
[edit]
I have updated my code to reflect "border compatibilities" and now the solution is readable without interaction, and solving whole puzzle needs about 50 clicks, but seems it is still far away from helping in the next level.
Seems to follow the lines would help in the next level ...
[/edit]
On previous challenges I have used java to transform some picture to another or grab an info from it. Now I have implemented interactive puzzle solver ... and my smaller doughter was ready to help me in chosing best of 2-6 pieces... I was afraid my initial renaming of the pictures would be problem but I have tried to answer what I read on the picture first.
It would not be that difficult to transform my saves to original names anyways.
Nice challenge.
[edit]
I have updated my code to reflect "border compatibilities" and now the solution is readable without interaction, and solving whole puzzle needs about 50 clicks, but seems it is still far away from helping in the next level.
Seems to follow the lines would help in the next level ...
[/edit]
Excited for the next one!
This challenge was really fun, so I'm happy to see there is a follow-up.
It took me about 10h to code this in about 600 lines of C# but seeing the pieces being puzzled together in realtime (about 3 minutes) is so rewarding. I've watched it a few times :D
I'm also quite sure that I'm well prepared for the next one because only little changes to some constants in my code are needed to adjust for the new pieces etc .. although I suspect there is more to it this time.
Cya in the 'solved' forum soon ;-]
It took me about 10h to code this in about 600 lines of C# but seeing the pieces being puzzled together in realtime (about 3 minutes) is so rewarding. I've watched it a few times :D
I'm also quite sure that I'm well prepared for the next one because only little changes to some constants in my code are needed to adjust for the new pieces etc .. although I suspect there is more to it this time.
Cya in the 'solved' forum soon ;-]
-
- Posts: 58
- Joined: Thu Nov 29, 2012 7:45 pm
- Location: Germany
This was generated with my solver for the 2nd puzzle.
Without the image export for intermediate steps it takes about 10s to run.
I start with a random piece, then always take the longest edge and try to place pieces along the edge. I repeat the filling process in both directions and make sure that I place the same pieces in both cases. If it fails, I split the edge in half and retry with the shortened edge.
gif
Without the image export for intermediate steps it takes about 10s to run.
I start with a random piece, then always take the longest edge and try to place pieces along the edge. I repeat the filling process in both directions and make sure that I place the same pieces in both cases. If it fails, I split the edge in half and retry with the shortened edge.
gif