Summary: | You couldn't win message...wrong sometimes in Gipsy (and perhaps in GrandFather) | ||
---|---|---|---|
Product: | [Applications] kpat | Reporter: | gerard |
Component: | general | Assignee: | Stephan Kulow <coolo> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 2.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
kpat_not_lost
kpat_not_lost2 Screenshot of clearly winnable game |
Description
gerard
2003-05-04 11:13:34 UTC
for grandfather the bug is fixed in 3.1.1a, but for gypsy I haven't heard of it. Can you send me a saved game to reproduce? (I'm a lazy guy - and bad in finishing patiences :) Subject: Re: You couldn't win message...wrong sometimes in Gipsy (and perhaps in GrandFather) Le Lundi 05 Mai 2003 11:09 AM, vous avez Subject: Re: You couldn't win message...wrong sometimes in Gipsy (and perhaps in GrandFather) Le Mercredi 07 Mai 2003 08:51 PM, vous avez Subject: KDE_3_1_BRANCH: kdegames/kpat CVS commit by coolo: code cleanup. Should fix 58101 CCMAIL: 58101-done@bugs.kde.org (Gerard - I hope you can update and try again) M +27 -29 gypsy.cpp 1.12.2.1 --- kdegames/kpat/gypsy.cpp #1.12:1.12.2.1 @@ -76,11 +76,9 @@ bool Gypsy::isGameLost() const { } - Card *cardi,*cnext; - int i, j, k, indexi; - - for(i=0; i < 8; i++){ - cnext=store[i]->top(); - indexi=store[i]->indexOf(cnext); + for(int i=0; i < 8; i++) { + Card *cnext=store[i]->top(); + int indexi=store[i]->indexOf(cnext); + Card *cardi= 0; do{ cardi=cnext; @@ -88,7 +86,7 @@ bool Gypsy::isGameLost() const { cnext=store[i]->at( --indexi ); - - for(j=1; j <8; j++){ - k=(i+k) % 8; + for(int k=0; k <8; k++) { + if (i == k) + continue; if((cardi->value()+1 == store[k]->top()->value()) && Created attachment 8060 [details]
Screenshot of clearly winnable game
I'm getting this message with Klondike for version 2.2, kpatience installed
from the Debian unstable packages.
|