gnugo-devel
[Top][All Lists]
Advanced

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

[gnugo-devel] Semeai traces


From: bump
Subject: [gnugo-devel] Semeai traces
Date: Sun, 28 Nov 2004 14:57:28 -0800

The function find_more_semeai_moves() makes traces
that are very verbose. Try:

gnugo -l regression/games/verybad.sgf -L 109 -t

This patch corrects this.

Maybe at least the first DEBUG in try_potential_semeai_move()
could be TRACE. In that case, the stashing of verbose
could be moved to that function and unstashed before
the TRACE.

Dan




Index: engine/value_moves.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/value_moves.c,v
retrieving revision 1.137
diff -u -r1.137 value_moves.c
--- engine/value_moves.c        24 Nov 2004 04:35:51 -0000      1.137
+++ engine/value_moves.c        28 Nov 2004 22:47:14 -0000
@@ -757,10 +757,16 @@
 find_more_semeai_moves(int color)
 {
   int pos;
+  int save_verbose = verbose;
+
+  if (verbose > 0)
+    verbose--;
+
   for (pos = BOARDMIN; pos < BOARDMAX; pos++) {
     int k, r;
     int potential_semeai_move_found = 0;
     int other_move_reason_found = 0;
+
     if (!ON_BOARD1(pos))
       continue;
     for (k = 0; k < MAX_REASONS; k++) {
@@ -791,6 +797,7 @@
        try_potential_semeai_move(pos, color, &(move_reasons[r]));
     }
   }
+  verbose = save_verbose;
 }
 
 





reply via email to

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