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 390585 - Clock game incorrectly ends with "success"
Clock game incorrectly ends with "success"
Status: RESOLVED FIXED
Product: aisleriot
Classification: Other
Component: games
git master
Other All
: Normal minor
: ---
Assigned To: aisleriot-maint
aisleriot-maint
Depends on:
Blocks:
 
 
Reported: 2006-12-29 06:33 UTC by Alan Silvester
Modified: 2011-10-09 16:12 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Alan Silvester 2006-12-29 06:33:28 UTC
Please describe the problem:
The game ended with the following card layout ("X" is face-down):

               QQQQ
           JJJJ    AAAA
       TTTT             X222
   9999        KKKK         3333
       8888             4444
           7777    5555
               6666

and declared I won, but the last "two" was still face-down.  This should have been a loss.

Steps to reproduce:
1. Rather hard to do, but play the game enough to get a layout like the above.


Actual results:
You win

Expected results:
You should lose

Does this happen every time?
It's the first time I've run across this card layout

Other information:
Comment 1 Christian Persch 2008-03-25 12:02:37 UTC
Re-assigning to default owner.
Comment 2 Vincent Povirk 2009-03-07 19:02:06 UTC
Technically, according to the help and according to the game rules, this is a win. The game is won when all cards are in the correct location based on their rank, regardless of whether they are face-up.

Wikipedia says the goal is to reveal all cards. Perhaps we should change it to match.
Comment 3 jstookey 2011-07-20 20:30:06 UTC
Throughout the course of 10 games or so of Aisleriot's Clock game, I have encountered this bug twice.  I was declared a winner when all the cards had not yet been revealed.  I played the game sometimes growing up, and we played according to the rules that Wikipedia describes.  I would strongly vote to have the Clock game's rules fixed to match Wikipedia's rules.  The way the game is programmed now, I think that if all of the cards happened to be dealt in their respective piles, then the player would be declared a winner with all of the cards face-down, before any moves were completed.  That's not much of a game.
Comment 4 Vincent Povirk 2011-07-20 20:44:51 UTC
Such a game is impossible, as aisleriot skips games that begin with no possible moves (which includes, I believe, initially won games). But I have no objection to changing the rules to match Wikipedia. I personally don't like that the win condition can depend on information that isn't visible.

Unless Christian (or anyone who else who happens to be reading) has an objection, I'll make this change.
Comment 5 Christian Persch 2011-07-26 12:08:21 UTC
That's fine with me.
Comment 6 Vincent Povirk 2011-07-30 22:00:26 UTC
Maybe I should wait for 3.3.x, as it means a change in the documentation.
Comment 7 Christian Persch 2011-07-30 22:18:18 UTC
I think it's still early enough in the release cycle, but it's your decision.
Comment 8 Vincent Povirk 2011-10-09 16:12:16 UTC
Maan, Wikipedia's version of Clock is depressing. :(

Anyway, pushed:

commit 565bb5c7c2b062c40d4c1c58263db8e0cbd16da4
Author: Vincent Povirk <madewokherd@gmail.com>
Date:   Sun Oct 9 11:06:38 2011 -0500

    clock: Change goal to revealing all cards.