https://bugs.kde.org/show_bug.cgi?id=504917
cwo <cwo....@posteo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit| |https://invent.kde.org/plas | |ma/kdeplasma-addons/-/commi | |t/1ed2c7ff69154e06cc890bf94 | |c59bbcf40b34fa6 Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #4 from cwo <cwo....@posteo.net> --- Git commit 1ed2c7ff69154e06cc890bf94c59bbcf40b34fa6 by Christoph Wolk. Committed on 29/05/2025 at 09:08. Pushed by cwo into branch 'master'. applets/fifteenpuzzle: don't shuffle into a solved puzzle When reshuffling the board, it's possible to immediately get an already solved puzzle. It's very unlikely for realistic board sizes, but can be triggered somewhat if you refresh a 2×2 board often for some reason. We might as well make sure it never happens. To do this easily, we convert the existing solution checker into a function with return value, rather than always immediately marking the board as solved if it is, and use that to reshuffle if needed. M +9 -4 applets/fifteenPuzzle/package/contents/ui/FifteenPuzzle.qml https://invent.kde.org/plasma/kdeplasma-addons/-/commit/1ed2c7ff69154e06cc890bf94c59bbcf40b34fa6 -- You are receiving this mail because: You are watching all bug changes.