gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] trymove pass


From: Gunnar Farnebäck
Subject: Re: [gnugo-devel] trymove pass
Date: Sat, 27 Nov 2004 04:43:43 +0100
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)

I wrote:
> From time to time when I'm doing experiments I find it annoying that
> it's not possible to trymove a pass. This patch adds that
> functionality.

I thought I had tested it, but apparently that patch broke the sgf
traces. This patch gives a quick solution but the proper fix is left
as a FIXME.

- popgo() bugfix to repair sgf traces

/Gunnar

Index: engine/board.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/board.c,v
retrieving revision 1.104
diff -u -r1.104 board.c
--- engine/board.c      18 Nov 2004 02:34:01 -0000      1.104
+++ engine/board.c      27 Nov 2004 03:36:19 -0000
@@ -702,8 +702,11 @@
     char buf[100];
     int is_tryko = 0;
     char *sgf_comment;
-    
-    if (sgfGetCharProperty(sgf_dumptree->lastnode, "C", &sgf_comment)
+
+    /* FIXME: Change the sgfGet*Property() interface so that either
+     * "C" instead of "C " works or the SGFXX symbols are used.
+     */
+    if (sgfGetCharProperty(sgf_dumptree->lastnode, "C ", &sgf_comment)
        && strncmp(sgf_comment, "tryko:", 6) == 0)
       is_tryko = 1;
     




reply via email to

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