Bug 334347

Summary: Demo never stops flipping through the deck to find a card to play
Product: [Applications] kpat Reporter: jbn
Component: generalAssignee: Stephan Kulow <coolo>
Status: CONFIRMED ---    
Severity: normal CC: kde-games-bugs-null, q39uc+54mfxqm10agiw
Priority: NOR    
Version First Reported In: 3.6   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: A Klondike game that illustrates this bug.

Description jbn 2014-05-04 19:24:22 UTC
Opening the supplied Kpatience Klondike hand and clicking "Demo" makes Kpatience never stop flipping through the deck looking for a card to play. The solver claims that no matter which playable card one picks, one will end up with a game that cannot be won.

Reproducible: Always

Steps to Reproduce:
1. Load the attached Kpatience Klondike file.
2. Click "Demo".
3. Watch Kpatience repeatedly flip through the deck of cards to play.
Actual Results:  
Kpatience never plays a card and never stops with a clear indication that the game has ended as all foreseeable hands result in a losing game (according to the solver).

Expected Results:  
I expected the demo would stop after going through the entire deck and then I expected that the demo would declare the game lost. Alternately, the demo could try some moves, undo moves, and try something else if the demo reaches a point where it is clear there are no more moves to make.

I didn't expect the demo to endlessly flip through the deck making no moves.

I don't know how the demo ought to work, I only know what I think the demo ought to do (which is what a player would do--try playing until the possibilities are exhausted).
Comment 1 jbn 2014-05-04 19:25:12 UTC
Created attachment 86457 [details]
A Klondike game that illustrates this bug.
Comment 2 Andrew Crouthamel 2018-11-11 04:32:44 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-11-21 04:32:27 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 4 jbn 2018-11-21 17:57:09 UTC
3.6 appears to be the latest version and there's no change; the solver is "unable to determine if this game is winnable" and apparently there's no logic in the demo to stop playing after all of the cards in the deck have been dealt without change to any of the piles or foundations.
Comment 5 Justin Zobel 2023-01-18 02:41:17 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 6 Stephan Kulow 2023-01-18 09:56:37 UTC
I hope setting it to CONFIRMED stops this bot madness
Comment 7 Stephan Kulow 2023-02-27 08:27:53 UTC
*** Bug 338505 has been marked as a duplicate of this bug. ***