Summary: | freecell - can move from foundation but shouldn't be able to | ||
---|---|---|---|
Product: | [Applications] kpat | Reporter: | Tim Wunder <twunder> |
Component: | general | Assignee: | Stephan Kulow <coolo> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kanthoney |
Priority: | NOR | ||
Version: | 2.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
Don't allow removing cards from foundation
Don't be too aggresive moving cards to the foundation |
Description
Tim Wunder
2001-12-29 00:58:42 UTC
*** Bug 46274 has been marked as a duplicate of this bug. *** Confirmed still as described in today's HEAD. Cards should not be able to be removed from the foundations. The Windows Freecell implementation is too conservative in moving cards up to the foundations, but kpat is too aggressive. According to most sources I've read, a card can be moved to a foundation automatically if it is exposed and BOTH the foundations of the opposite color are at most two ranks lower than the card you are examining to move up. Created attachment 1723 [details]
Don't allow removing cards from foundation
I created a patch that should disallow removing cards from the foundations.
Looking through WebCVS, though, it looks like the line this removes was
explicitly added in frecell.cpp revision 1.23. I don't know why that was done.
Maybe some other freecell-type game allows it?
Created attachment 1724 [details]
Don't be too aggresive moving cards to the foundation
This patch takes ideas from klondike for when not to automatically move cards
to the foundation. Basically, if the lowest card of a different color is one
lower, or if it is two lower and the lowest card of the same color is only two
lower. This patch is meant to be applied on top of the previous patch. I can
create a version for the 3.1 branch, too, if you want.
Subject: kdegames/kpat CVS commit by coolo: apply the patches supplied by Josh Metzler CCMAIL: joshdeb@metzlers.org CCMAIL: 36582-close@bugs.kde.org M +123 -2 freecell.cpp 1.52 M +1 -0 freecell.h 1.21 |