Hacker News new | ask | show | jobs
by HenryBemis 698 days ago
Does your puzzle start from an (non-visible) completed state, then you apply to it a random number between 50-100 of random moves/swaps, and then it becomes visible for the player? I mean is it (even) solvable? Or each piece of the puzzle is randomly placed AND randomly oriented, which could make potentially unsolvable?
1 comments

It's start from completed state and then randomized. I think it's solvable if you can retrace the randomized step (by using undo button)
Sometimes it seems to jumble things back into the original arrangement. A couple times I got a new puzzle where everything was already in the right place. I just clicked the same piece twice and coalesced and solved!

So you might do a check after jumbling to make sure you're not back in the original arrangement. If so, keep jumbling.

Fun puzzle!