Summary: | KMahjongg generates non-solvable boards (at least when pressing shuffle) | ||
---|---|---|---|
Product: | [Applications] kmahjongg | Reporter: | Maarten Fonville <maarten.fonville> |
Component: | general | Assignee: | Mauricio Piacentini <piacentini> |
Status: | CONFIRMED --- | ||
Severity: | wishlist | CC: | antonis.tsiapaliokas, iandw.au, kdebugs, walch.martin |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
Screenshot of unsolvable game
Disable redo after shuffle Shuffling CAN create an unsolvable game, as shown in these screenshots. |
Description
Maarten Fonville
2008-01-17 19:13:43 UTC
Created attachment 26872 [details]
Screenshot of unsolvable game
This puzzle started off unsolvable. The matches for the tile at the very top
only two, not three) were all below it. When first ran out of moves, I had not
found a match for the top tile. I shuffled the board until I got to the point
depicted in the screen shot.
Hello I have tried to reproduce the following bug but i could not. Because i won the game :) So i guess that there is no bug... Or this might be a kde 3 bug, since the screen shot which Tim has attached is from the kde 3.. Here is some information about my system. OS: opensuse 11.3 kde: 4.5.73 (from the trunk) In my way to try to reproduce the bug i have done the following steps: 1)run the game 2)shuffle 3)won the game I have a screen shot from my win but i could not upload it because it too big... The bug was valid on KDE 4.0 I don't know whether it is still valid, since I have no KDE install to my availability anymore. *** This bug has been marked as a duplicate of bug 314219 *** The shuffle option renders games unsolvable when used in conjunction with undo/redo operations (KDE 4.14.0). It is pretty easy to reproduce: * start a new game * remove a matching pair * undo removing * shuffle * redo removing Unless the now newly removed tiles incidentally are the same as before, the game is now in an invalid state. (Things get even more crazy if you then shuffle again and again undo the last action.) Reopening this bug as it involves the shuffle operation, which makes it different from bug #314219. Created attachment 90112 [details] Disable redo after shuffle This only address the problem described in Comment 5. Looking at the shuffle code in GameData my understanding is that it just randomly swaps around the tile faces, so I think the first part is valid as well and not a duplicate of bug 314219. Created attachment 90660 [details]
Shuffling CAN create an unsolvable game, as shown in these screenshots.
|