gnugo-devel
[Top][All Lists]
Advanced

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

[gnugo-devel] tuning patch


From: Gunnar Farneback
Subject: [gnugo-devel] tuning patch
Date: Sun, 20 Apr 2003 12:43:33 +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)

Some minor tuning, no effects on the regressions.

- don't attack unconditionally dead stones, even if thrashing
- never play on vertices which are unconditional territory for either player
- tuning
- owl tuning
- eye tuning

Index: engine/genmove.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/genmove.c,v
retrieving revision 1.69
diff -u -r1.69 genmove.c
--- engine/genmove.c    24 Mar 2003 11:49:24 -0000      1.69
+++ engine/genmove.c    18 Apr 2003 11:10:01 -0000
@@ -686,7 +686,8 @@
     return 0;
   
   for (pos = BOARDMIN; pos < BOARDMAX; pos++)
-    if (ON_BOARD(pos) && thrashing_stone[pos]) {
+    if (ON_BOARD(pos) && thrashing_stone[pos]
+       && worm[pos].unconditional_status != DEAD) {
       dragon[pos].status = UNKNOWN;
       DRAGON2(pos).safety = ALIVE;
     }
Index: engine/value_moves.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/value_moves.c,v
retrieving revision 1.86
diff -u -r1.86 value_moves.c
--- engine/value_moves.c        27 Mar 2003 10:33:12 -0000      1.86
+++ engine/value_moves.c        18 Apr 2003 11:10:32 -0000
@@ -2509,6 +2513,12 @@
   if (is_antisuji_move(pos))
     return 0.0; /* This move must not be played. End of story. */
 
+  /* Never play on a vertex which is unconditional territory for
+   * either player. There is absolutely nothing to gain.
+   */
+  if (worm[pos].unconditional_status != UNKNOWN)
+    return 0.0;
+  
   /* If this move has no reason at all, we can skip some steps. */
   if ((!urgent || allpats)
       && (move[pos].reason[0] >= 0
Index: patterns/endgame.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/endgame.db,v
retrieving revision 1.47
diff -u -r1.47 endgame.db
--- patterns/endgame.db 24 Mar 2003 11:46:19 -0000      1.47
+++ patterns/endgame.db 18 Apr 2003 11:10:51 -0000
@@ -1554,6 +1554,16 @@
 :|,OXe,terri(0.1)
 
 
+Pattern CE32
+# gf New pattern. (3.3.17)
+
+X*X
+O.o
+?O?
+
+:8,OXe
+
+
 ######################################################################
 #
 # Center followup patterns
Index: patterns/eyes.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/eyes.db,v
retrieving revision 1.34
diff -u -r1.34 eyes.db
--- patterns/eyes.db    6 Feb 2003 13:34:59 -0000       1.34
+++ patterns/eyes.db    18 Apr 2003 11:10:53 -0000
@@ -3556,9 +3556,11 @@
 
 
 Pattern 6514
+# Need to mark both empty vertices. In the corner one of them may not
+# be a valid defense (suicide move).
 
 XX*
-.XX
+*XX
 
 :1122
 
Index: patterns/owl_defendpats.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/owl_defendpats.db,v
retrieving revision 1.87
diff -u -r1.87 owl_defendpats.db
--- patterns/owl_defendpats.db  30 Mar 2003 12:26:11 -0000      1.87
+++ patterns/owl_defendpats.db  18 Apr 2003 11:11:00 -0000
@@ -3488,6 +3488,7 @@
 
 Pattern D839
 # tm New Pattern (3.1.22) (see trevord:910)
+# gf FIXME: This is no corner pattern, move. (3.3.18)
 
 X*O?     Extend side eye-space in sente
 ?..o
@@ -3501,6 +3502,28 @@
 
 ;!obvious_false_oeye(a)
 ;&& oplay_attack(*,b,C)
+
+
+Pattern D840
+# gf New pattern. (3.3.18)
+
+|.X??     Capture lunch with threat to make second eye
+|.OO?
+|.XO?
+|*XOo
+|...o
++----
+
+:8,-,value(88)
+
+|.X??
+|cOO?
+|.AO?
+|*AOo
+|.b.o
++----
+
+;does_attack(*,A) && xplay_attack(b,*,c,A)
 
 
 #########################################################
Index: patterns/patterns.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/patterns.db,v
retrieving revision 1.104
diff -u -r1.104 patterns.db
--- patterns/patterns.db        17 Mar 2003 21:57:27 -0000      1.104
+++ patterns/patterns.db        18 Apr 2003 11:11:09 -0000
@@ -6006,8 +6006,7 @@
 
 
 Pattern EB1307
-# The high shape value is somewhat problematic since sometimes the
-#     hane above is much better.
+# gf Removed shape bonus. (3.3.18)
 
 ?..??         hane to undermine the opponent
 ..XOo
@@ -6015,7 +6014,7 @@
 ....o
 -----
 
-:8,OXead,shape(7)
+:8,OXead
 
 ?..??
 ..Xao
@@ -11101,7 +11100,7 @@
 a*b
 dXO
 
-# The second move by X at b is intentional and has the effect of X passing.
+# The second move by X at a is intentional and has the effect of X passing.
 ;oplay_attack(*,b,b)
 ;&& !oplay_attack(*,a,b,a,c,c) && !oplay_attack(*,a,b,a,d,d)
 
@@ -11153,6 +11152,7 @@
 
 
 Pattern CD91
+# gf Revised constraint. (3.3.18)
 
 ?XO.        atari to prevent opponent's expansion
 OOX.
@@ -11161,10 +11161,10 @@
 :8,XEd,shape(10)
 
 ?Xa.
-OOX.
+bbX.
 ..*.
 
-; attack(a) && !defend(a)
+; alive(b) && attack(a) && !defend(a)
 
 
 Pattern CD92
@@ -11514,6 +11514,23 @@
 :8,-,shape(-3)
 
 
+Pattern CD109
+# gf New pattern. (3.3.18)
+
+.OX        defend cut to attack
+.*O
+.OX
+
+:-,Xa,shape(2)
+
+.cX
+.*a
+.bX
+
+;lib(a)==1 && (alive(b) || alive(c))
+;&& (xplay_attack(*,b) || xplay_attack(*,c))
+
+
 ######################################################################
 #
 # Edge joseki patterns.




reply via email to

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