gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] bugfix


From: bump
Subject: Re: [gnugo-devel] bugfix
Date: Tue, 12 Nov 2002 06:31:39 -0800

Paul wrote:

> now, this patch is very nice (unless i'm missing something as usually).
> 
> regression delta is at least 2 "passes" in ld_owl.tst: 161, 302.

It seemed to me that we should do the following in In gtp_dragon_status,
though it passes only ld_owl:302 and not ld_owl:161.

Dan

Index: interface/play_gtp.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/interface/play_gtp.c,v
retrieving revision 1.99
diff -u -r1.99 play_gtp.c
--- interface/play_gtp.c        21 Oct 2002 03:31:35 -0000      1.99
+++ interface/play_gtp.c        12 Nov 2002 14:28:14 -0000
@@ -1845,16 +1845,18 @@
   int i, j;
   int str = NO_MOVE;
   int pos;
+  int color = EMPTY;
 
   if (gtp_decode_coord(s, &i, &j)) {
     str = POS(i, j);
     if (board[str] == EMPTY)
       return gtp_failure("vertex must not be empty");
+    color = board[str];
   }
   else if (sscanf(s, "%*s") != EOF)
     return gtp_failure("invalid coordinate");
 
-  silent_examine_position(BLACK, EXAMINE_DRAGONS);
+  silent_examine_position(color, EXAMINE_DRAGONS);
   
   gtp_start_response(GTP_SUCCESS);
 





reply via email to

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