gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] Crash in latest CVS...


From: Gunnar Farnebäck
Subject: Re: [gnugo-devel] Crash in latest CVS...
Date: Wed, 16 Jun 2004 05:20:07 +0200
User-agent: EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/21.3 (sparc-sun-solaris2.9) MULE/5.0 (SAKAKI)

Tom wrote:
> My robot crashed today, and unfortunately its opponent disappeared so the 
> game 
> was unfinished.  As a consequence, I can't get an SGF file yet (though I left 
> a message for the player to let them know what to do if they resume the 
> game).  However, maybe the debugging output is enough to track down this 
> bug...

Thanks. The patch below probably fixes the bug.

/Gunnar

Index: engine/combination.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/combination.c,v
retrieving revision 1.51
diff -u -r1.51 combination.c
--- engine/combination.c        4 Jun 2004 01:28:08 -0000       1.51
+++ engine/combination.c        16 Jun 2004 03:16:52 -0000
@@ -472,7 +472,7 @@
       
     memcpy(defense_moves, defense_points, sizeof(defense_points));
     for (pos = BOARDMIN; pos < BOARDMAX; pos++) {
-      if (!ON_BOARD(pos) || !defense_moves[pos])
+      if (!ON_BOARD(pos) || !defense_moves[pos] || pos == move)
        continue;
 
       if (!trymove(pos, color, "atari_atari", NO_MOVE)) {




reply via email to

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