gnugo-devel
[Top][All Lists]
Advanced

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

[gnugo-devel] Eyemin patch


From: bump
Subject: [gnugo-devel] Eyemin patch
Date: Mon, 30 Dec 2002 10:19:43 -0800

There seems to be no logical reason to let *eyemin get negative in
owl_estimate_life.

This affects the regressions:

./regress.sh . nngs.tst 
720 unexpected FAIL: Correct 'F16', got 'A11'
./regress.sh . trevorc.tst 
1360 unexpected PASS!

- Never decrement *eyemin to negative in owl_estimate_life

Dan


Index: engine/owl.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/owl.c,v
retrieving revision 1.131
diff -u -r1.131 owl.c
--- engine/owl.c        25 Dec 2002 20:26:44 -0000      1.131
+++ engine/owl.c        30 Dec 2002 16:55:24 -0000
@@ -2307,7 +2307,9 @@
 
   if ((debug & DEBUG_EYES) && (debug & DEBUG_OWL))
     gprintf("owl: eyemin=%d matches_found=%d\n", *eyemin, matches_found);
-  *eyemin -= matches_found;
+  if (*eyemin >= matches_found)
+    *eyemin -= matches_found;
+  else *eyemin = 0;
 
   sgf_dumptree = save_sgf_dumptree;
   count_variations = save_count_variations;




reply via email to

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