FS#2048 - sliding puzzle plugin bug

Attached to Project: Rockbox
Opened by Andre Herbst (moormaster) - Sunday, 07 March 2004, 17:16 GMT
Last edited by Linus Nielsen Feltzing (linusnielsen) - Friday, 05 November 2004, 07:03 GMT
Task Type Bugs
Status Closed
Assigned To No-one
Operating System
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


there is a bug in the shuffle algorithm which causes the
puzzle to be unsolveable sometimes:

1 2 3 4
5 6 7 8
9 10 11 12
13 15 14
-- --

it is impossible to swap only one pair of numbers without
swapping another. So this constellation is not solveable.

So it has to be checked if the number swapped number-
pairs is odd or not.
This task depends upon

Closed by  Linus Nielsen Feltzing (linusnielsen)
Friday, 05 November 2004, 07:03 GMT
Reason for closing:  Fixed
Comment by Linus Nielsen Feltzing (linusnielsen) - Monday, 12 July 2004, 10:46 GMT

There is a check for solvable puzzles, but it turns out it
used the wrong number of tiles. This is now fixed.