[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegames/kpat/patsolve
From:       Stephan Kulow <coolo () kde ! org>
Date:       2009-08-20 16:01:27
Message-ID: 1250784087.658028.27249.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1013731 by coolo:

don't overoptimze. Before the change: 59 out of 100 games
lost, after the change: 12 lost (but a lot more unknown due
to the larger test tree)
BUG: 204544


 M  +1 -1      idiot.cpp  


--- trunk/KDE/kdegames/kpat/patsolve/idiot.cpp #1013730:1013731
@@ -156,7 +156,7 @@
             // Find a card to move there
             for( int j = 0; j < 4; ++j )
             {
-                if ( i != j && Wlen[j]>1 )
+                if ( i != j && Wlen[j]>0 )
                 {
                     mp->card_index = 0;
                     mp->from = j;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic