[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] Patch for SGF trace output
From: |
SP Lee |
Subject: |
[gnugo-devel] Patch for SGF trace output |
Date: |
Wed, 4 Feb 2004 16:20:06 -0800 |
The following patch makes the SGF trace output more readable. Now the
trace ouput will be something like "break chain at (position
tried)......" instead of "break chain at (worm to be attacked or
defended) ......".
SP Lee
$ cvs diff -u board.c
Index: board.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/board.c,v
retrieving revision 1.91
diff -u -r1.91 board.c
--- board.c 24 Jan 2004 04:04:56 -0000 1.91
+++ board.c 5 Feb 2004 00:14:43 -0000
@@ -491,7 +491,7 @@
if (message == NULL)
message = "UNKNOWN";
- if (str == NO_MOVE) {
+ if (pos == NO_MOVE) {
if (komaster != EMPTY)
gg_snprintf(buf, 100, "%s (variation %d, hash %s, komaster
%s:%s)",
message, count_variations,
hashdata_to_string(&hashdata),
@@ -504,13 +504,13 @@
if (komaster != EMPTY)
gg_snprintf(buf, 100,
"%s at %s (variation %d, hash %s, komaster %s:%s)",
- message, location_to_string(str), count_variations,
+ message, location_to_string(pos), count_variations,
hashdata_to_string(&hashdata),
color_to_string(komaster),
location_to_string(kom_pos));
else
gg_snprintf(buf, 100, "%s at %s (variation %d, hash %s)",
- message, location_to_string(str), count_variations,
+ message, location_to_string(pos), count_variations,
hashdata_to_string(&hashdata));
}
sgftreeAddPlayLast(sgf_dumptree, color, I(pos), J(pos));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnugo-devel] Patch for SGF trace output,
SP Lee <=