https://bugs.kde.org/show_bug.cgi?id=469082

            Bug ID: 469082
           Summary: Solitare automatically puts unsafe cards on the
                    foundation
    Classification: Applications
           Product: kpat
           Version: 23.04.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: co...@kde.org
          Reporter: a...@witches.live
                CC: kde-games-b...@kde.org
  Target Milestone: ---

Created attachment 158499
  --> https://bugs.kde.org/attachment.cgi?id=158499&action=edit
Screenshot of the game state with manual undo to help any poor soul who feels
compelled to follow the demonstration but can't load up kpatience to do it

In all Freecell game modes, cards will automatically be put on the foundation
if they are eligible, necessitating an undo action in some cases in order to be
able to solve the game. Automatically putting cards on the foundations should
only be done if there aren't any cards on the field that could be placed on top
of that card that could not be placed on the foundation if it was uncovered.

OBSERVED RESULT
An excellent example of this is I recently did Forecell variant game 26184086,
which immediately at the start of the game places the ace of hearts through the
six of hearts onto the foundation. I was unable to win this game until I hit
undo immediately at the game start and only allowed ace and 2 initially, as
later in the game it is necessary to have the 5, 4, and 3 of hearts available
to stack other cards on.

I have attached an image of the game state after undoing to the safe level of
only putting the 2 of hearts on the foundation (though you might want to play
along if you want to follow this). You might observe that rather immediately,
the six of hearts is useful for freeing the cell holding the 5 of spades, the
five of hearts can be put on the six of spades, the four of hearts can be put
on the 5 of spades, then the cell with the 3 of spades can be placed on that 4
to free a cell. Then the 8 of clubs can go on the 9 of hearts and the 7 of
diamonds can be released. 3 of hearts can be (manually!) put on the foundation,
9 of clubs can go on 10 of hearts, and the final free cell can be freed by
putting the six of diamonds on the 7 of clubs.

This ultimately ends up leading to the solution to this game; I was unable to
find one that works by placing all the way through the 6 of hearts at the
beginning.

EXPECTED RESULT
In the aforementioned example, I shouldn't have had to undo any move, only the
ace and 2 of hearts should have moved automatically. The 3 of hearts would not
be eligible for automatically moving to the foundation until both the ace of
clubs and spades are uncovered, as now both black 2 cards are eligible to be
moved to the foundation so there's no possible situation the three of hearts
might be necessary to solve the game.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo Linux 2.13 (Kernel 6.3.0)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version:  5.15.9

ADDITIONAL INFORMATION
gentoo ebuild version of kpatience

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to