Summary: | KMahjongg with "explosion" board layout contains unresponsive tiles with vertical edge exposed | ||
---|---|---|---|
Product: | [Applications] kmahjongg | Reporter: | Ficus strangulensis <ficus> |
Component: | general | Assignee: | Christian Krippendorf <CerebrosuS> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | CerebrosuS, iandw.au, kde-games-bugs |
Priority: | NOR | ||
Version: | 0.8 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Ficus strangulensis
2016-01-24 18:52:11 UTC
I also have seen this happen with the Explosion layout. The problem appears to be that the Explosion layout has a very large number of tiles and often fails to generate a puzzle. Normally this should leave you with an empty background and a message in the status bar. Then you can try again --- or try another layout. If puzzle generation fails for Explosion when you are in the Settings dialog for Board Layout, you get an empty background in the layout Preview widget. If you then click "OK", you get a garbage puzzle (not a proper Explosion layout, nor an empty background) and it has the problems you report. We should think about some solutions here: 1) Create try to recreate one for lets say a maximum of 5 seconds. But no matter how many repeats you do. The layout can fail. 2) Algorithm for create a layout without any failure. An algorithm bulding up a layout from scratch. Like the other way around as you would play it. This will lead to more time consuming board creation, but the created layout will be solvable for sure. Also it might not be possible to choose a specific layout. If someone wants to think about this design decision, I would implemented whatever is wanted. Greetings Or one could make it fail more gracefully, with popup "sorry" KMessageBox's for each failure path and an invitation to try again... rather than showing just a blank screen and an inconspicuous status bar message or allowing an invalid puzzle to be entered. @Christian, re your alternatives 1) and 2): 1) should be quite doable, but 2) could be difficult. I have no ideas on that. |