Created attachment 158499 [details] 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
Minor correction: * it is necessary to have the 6, 5, and 4 of hearts available to stack other cards on. We end up manually putting the 3 on the foundation, but this particular deal doesn't necessitate holding the 2 of clubs at any point, especially since its at the bottom of a stack.
it should be noted that this bug is a regression introduced very recently, possibly with version 23.04.0.
this bug is in the freecell solver library used. which version do you have?
(In reply to Stephan Kulow from comment #3) > this bug is in the freecell solver library used. which version do you have? libfreecell-solver0 is version 5.0.0-2. This is the same version that was used when the bug wasn't occurring, but kpat app was older.
This bug is not specific to freecell as kpatience is overly aggressive in moving cards to the foundation in Castle as well.
Thanks for the example Anna. I see what's going on - simple simon had too little autodrop and I managed to make the hints (used for autodrop) way too agressive in the process of fixing it. *** This bug has been marked as a duplicate of bug 469991 ***