Bug 502778 - Kpat solver shows illegal move in Spider (2 suits)
Summary: Kpat solver shows illegal move in Spider (2 suits)
Status: REPORTED
Alias: None
Product: kpat
Classification: Applications
Component: solver (other bugs)
Version First Reported In: 24.12.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-14 08:29 UTC by plasmabigfan
Modified: 2025-04-21 09:12 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Video of bug (326.39 KB, video/webm)
2025-04-14 08:29 UTC, plasmabigfan
Details
The save file for a buggy game (14.85 KB, application/vnd.kde.kpatience.savedgame)
2025-04-18 16:45 UTC, plasmabigfan
Details
Video of the bug for which the save file has been attached (262.97 KB, video/webm)
2025-04-18 16:46 UTC, plasmabigfan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description plasmabigfan 2025-04-14 08:29:30 UTC
Created attachment 180247 [details]
Video of bug

SUMMARY
Kpat Spider (2 suit) solver shows an illegal and even performs it in the demo, but when the cards are being dragged and dropped, it does not allow the move. (Video linked)

OBSERVED RESULT
Move occurs

EXPECTED RESULT
Move should not occur

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 41
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
Comment 1 Stephan Kulow 2025-04-14 08:59:44 UTC
A save game would be useful.
Comment 2 plasmabigfan 2025-04-14 11:35:30 UTC
(In reply to Stephan Kulow from comment #1)
> A save game would be useful.

I am afraid I do not have it
Comment 3 Stephan Kulow 2025-04-14 12:41:28 UTC
then we wait now for it to reappear - unless it does, we'll need to close it. kpat has some problems in preserving the board state consistently in some situations around repeated undo/redo and it happens a lot during normal spider games. So I suspect it's not a solver problem but a undo/redo bug.
Comment 4 plasmabigfan 2025-04-14 14:09:33 UTC
(In reply to Stephan Kulow from comment #3)
> then we wait now for it to reappear - unless it does, we'll need to close
> it. kpat has some problems in preserving the board state consistently in
> some situations around repeated undo/redo and it happens a lot during normal
> spider games. So I suspect it's not a solver problem but a undo/redo bug.

Sure, that makes sense! I'll keep an eye out for the any repeatations of the bug, then. Any course of action when it does reappaer? Do I need to open another bug report or can I update it here itself?
Comment 5 Stephan Kulow 2025-04-14 14:54:15 UTC
Just attach the save game here.
Comment 6 plasmabigfan 2025-04-18 16:45:59 UTC
Created attachment 180387 [details]
The save file for a buggy game
Comment 7 plasmabigfan 2025-04-18 16:46:30 UTC
Created attachment 180388 [details]
Video of the bug for which the save file has been attached
Comment 8 plasmabigfan 2025-04-18 16:48:31 UTC
The bug has been spotted again. A video and the save file have been attached here