gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] slow moves in strategy.tst


From: Gunnar Farneback
Subject: Re: [gnugo-devel] slow moves in strategy.tst
Date: Mon, 29 Apr 2002 18:09:35 +0200
User-agent: EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/20.7 (sparc-sun-solaris2.7) (with unibyte mode)

Dan wrote:
> The current CVS version moves suspiciously slowly in strategy.tst
> around tests 34, 35, 36 and 37, taking ages to generate a move.

Teun's unshadowing patch had a bug which caused an infinite loop in
strategy:35. Fixed by the patch below.

/Gunnar

Index: engine/value_moves.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/value_moves.c,v
retrieving revision 1.30
diff -u -r1.30 value_moves.c
--- engine/value_moves.c        28 Apr 2002 14:46:43 -0000      1.30
+++ engine/value_moves.c        29 Apr 2002 16:01:26 -0000
@@ -761,8 +761,8 @@
             * dragon adjacent to the considered move.
             */
 
-           for (k = 0; k < 4; k++) {
-             int d = delta[k];
+           for (m = 0; m < 4; m++) {
+             int d = delta[m];
              if (board[pos+d] == color) {
                bb = pos + d;
                break;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]