fifteen
fifteen copied to clipboard
can u tell me the suffle logic for 3*3 matrix
Check this function, maybe it will help you https://github.com/nosovsh/fifteen/blob/master/src/GameHelpers.js#L27
i have tried that .. but puzzle not solved at the end.
Unfortunately I can not check it right know. But I think logic should be the same as for 4x4: number of permutation on shuffling should be even Check this for formal explanation http://mathworld.wolfram.com/15Puzzle.html
i have used ur code ....but the puzzle solved randomly in 3*3 matrix.
There is no any suggestion for 8 puzzle in your given link