After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 407329 - aisleriot, spider (one suit), "please fill an empty slot" impossible
aisleriot, spider (one suit), "please fill an empty slot" impossible
Status: RESOLVED FIXED
Product: aisleriot
Classification: Other
Component: general
pre-3.0
Other All
: Normal trivial
: ---
Assigned To: aisleriot-maint
aisleriot-maint
: 591628 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-02-13 03:56 UTC by paul
Modified: 2011-12-07 13:37 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Proposed patch (823 bytes, patch)
2008-12-08 15:59 UTC, Josselin Mouette
rejected Details | Review

Description paul 2007-02-13 03:56:19 UTC
perhaps this is just a case of poor planning resulting in a loss, but i felt it might be bugworthy

http://img45.imageshack.us/img45/5307/outsa0.png
Comment 1 Vincent Povirk 2007-02-13 22:58:13 UTC
Indeed, there's nothing you can do in that situation. I guess the hinting code could be updated to detect the end of the game, but it doesn't seem worth it to me given that Spider currently weasels out of detecting when a game is unwinnable by falling back on "Try moving card piles around".
Comment 2 Josselin Mouette 2008-01-07 11:14:21 UTC
I don’t think the game is either won or lost when in this situation, so this is no trivial bug.

http://bugs.debian.org/449590 describes the problem more precisely:
 “When playing Spider One Suit, if I have removed enough cards so that
 fewer than 10 are left on the board, but there are still cards left to
 deal from the deck, the game refuses to deal them, saying "Please fill
 in empty pile first".  But it's impossible to fill the empty piles
 with so few cards, so the game can't proceed.”
Comment 3 Christian Persch 2008-01-22 18:19:20 UTC
You can undo until you have enough cards on the tableau, can't you?
Comment 4 Christian Persch 2008-03-25 12:02:40 UTC
Re-assigning to default owner.
Comment 5 Josselin Mouette 2008-12-08 15:59:27 UTC
Created attachment 124182 [details] [review]
Proposed patch

Here is a patch proposal from Eric Cooper. I haven’t tested it yet.
Comment 6 Vincent Povirk 2008-12-08 16:09:38 UTC
I maintain this is a natural consequence of the well-established rules of Spider, and we shouldn't change them.

I haven't tried the patch, but from reading it, it looks like it allows deals if all tableau piles have at least one card (as it is now) OR all tableau piles have no more than one card. I don't think we should make this change.
Comment 7 Christian Persch 2008-12-08 17:23:34 UTC
> I don't think we should make this change.

Agreed. If anything, we shouldn't allow moving the completed stack to foundation if that makes it impossible to deal the next round of cards due to too few cards remaining. Or just NOTABUG this report, since you can just use Undo.
Comment 8 Christian Persch 2009-01-10 17:31:32 UTC
Setting patch status based on comment 6 and comment 7.
Comment 9 Vincent Povirk 2009-06-15 03:12:52 UTC
Committed 6d0c57e0558787389533bbef63f01afec491380a

The hint function will now say "Undo until there are enough cards to fill all tableau piles" when you are in this situation.
Comment 10 Vincent Povirk 2009-06-15 03:26:22 UTC
Committed 3b7980f71b387dc853cf377d3783a745e06ff529

This will change the "Please fill in empty pile first" when it's impossible to do so. That message will also explain that you have to undo.
Comment 11 Vincent Povirk 2009-06-15 03:30:28 UTC
Anything else we can do to make this more obvious? Is this good enough?

Changing the rules to make this move legal is not an option.
Comment 12 Christian Persch 2009-08-13 08:38:56 UTC
*** Bug 591628 has been marked as a duplicate of this bug. ***
Comment 13 Christian Persch 2011-04-25 12:06:08 UTC
Mass-moving only open aisleriot bugs to the new product. Search for "aisleriot-mass-move" to filter them.
Comment 14 Christian Persch 2011-12-07 13:37:22 UTC
IMHO this is good enough. Let's call this one FIXED :-)