[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] vital owl defense
From: |
Arend Bayer |
Subject: |
Re: [gnugo-devel] vital owl defense |
Date: |
Wed, 20 Nov 2002 02:06:55 +0100 (CET) |
Gunnar wrote:
> Arend wrote:
> > While there are matching vital owl attack patterns, we make it harder
> > for do_owl_defend to claim life (and hence cut the search).
> >
> > [...]
> >
> > This reduces owl nodes for nngs.tst by ~2% and probably gets exactly
> > one PASS for the whole regression test suite (a good one).
>
> I'm currently seeing a huge and rather negative regression delta,
> including
> Backing out arend_3_12.5 all of these disappear. Did something go
> wrong with this patch?
Sorry. I installed a wrong version of the patch. Reverting the hunk
below should fix it. I'll cross-check and put it in CVS tomorrow.
Arend
Index: engine/owl.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/owl.c,v
retrieving revision 1.121
diff -u -p -r1.121 owl.c
--- engine/owl.c 15 Nov 2002 19:39:45 -0000 1.121
+++ engine/owl.c 16 Nov 2002 19:39:49 -0000
@@ -1984,6 +1988,12 @@ do_owl_defend(int str, int *move, int *w
READ_RETURN(read_result, move, shape_moves[0].pos, WIN);
}
moves = shape_moves;
+
+ if (eyemax == 0 && escape_route == 0)
+ move_cutoff = 67;
+ else if (eyemax <= 1 && escape_route <= 2)
+ move_cutoff = 32;
+
break;
case 0: