Comment 18 for bug 515236

Revision history for this message
Bjoern Koch (h.humpel) wrote :

OK, just found some time to play around with the 15 pieces desklet. An updated version (0.8_beta2) can be found in the "desklets-basic" branch at rev. #55.

Please be aware that this version produces a lot of "debugging output" in the logfile and is for investigating this problem and testing purposes only !
Furthermore I have changed the name of the free tile from "free.png" to "0.png" for further work on the display file like e.g. simplifying check_layout(). Now the free tile can be anywhere on startup.

So, I have added the calculation of the inversions to the display file. The value will be displayed on top of the puzzle.
Strange thing: when moving the free tile vertically the number of inversions changes from even to odd (or odd to even). As far as I understood the website mentioned in comment #9 this shouldn't (should never) happen.
Maybe I made an error when integrating the free tile ?!
But everything looks fine if you take a look at the output in the logfile.

Any ideas ???