[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] using debugboard
From: |
Gunnar Farneback |
Subject: |
Re: [gnugo-devel] using debugboard |
Date: |
Tue, 16 Jul 2002 22:54:29 +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) |
Evan wrote:
> I can't seem to get it to open a sgf file. The command I'm using is
> debugboard game1.sgf movenum, and all I get is a blank board with the tabs
> at the bottom. game1.sgf is a valid sgf file of a game played to
> completion.
>
> Any suggestions?
Try this patch.
/Gunnar
Index: interface/debugboard/main.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/interface/debugboard/main.c,v
retrieving revision 1.8
diff -u -r1.8 main.c
--- interface/debugboard/main.c 7 Mar 2002 05:35:28 -0000 1.8
+++ interface/debugboard/main.c 16 Jul 2002 20:52:47 -0000
@@ -117,10 +117,6 @@
fusekidb = 1;
josekidb = 1;
- gameinfo_clear(&gameinfo, 19, 5.5);
- next = gameinfo_play_sgftree(&gameinfo, sgf_root, until);
-
-
/* Check if there is enough screen space. */
if (!display_init(MINWIDTH, MINHEIGHT, board_size))
exit(1);
@@ -128,6 +124,11 @@
/* Initialize the GNU Go engine. */
gg_srand(time(0));
init_gnugo(8);
+
+ gameinfo_clear(&gameinfo, 19, 5.5);
+ next = gameinfo_play_sgftree(&gameinfo, sgf_root, until);
+
+
reset_engine();
life = 1;