[Top][All Lists]
[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: |
Mon, 19 Jan 2004 00:19:01 +0100 |
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) |
A little tuning. Regression delta:
nicklas1:501 PASS G7 [G7]
gunnar:48 PASS P11 [P11]
nngs4:800 pass (fails in CVS)
- value_move_reasons() revised
- eye tuning
- tuning
/Gunnar
Index: engine/value_moves.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/value_moves.c,v
retrieving revision 1.115
diff -u -r1.115 value_moves.c
--- engine/value_moves.c 7 Jan 2004 10:00:20 -0000 1.115
+++ engine/value_moves.c 18 Jan 2004 13:57:28 -0000
@@ -2608,6 +2608,10 @@
int c;
float followup_value;
+ /* Negative territorial followup doesn't make make sense. */
+ if (move[pos].influence_followup_value < 0.0)
+ move[pos].influence_followup_value = 0.0;
+
followup_value = move[pos].followup_value
+ move[pos].influence_followup_value;
TRACE(" %1m: %f - total followup value, added %f as territorial
followup\n",
@@ -2617,11 +2621,8 @@
* be 0 points + followup. But we want to take the intersections first
* were we actually get some points. 0.5 points is a 1 point ko which
* is the smallest value that is actually worth something.
- * tm - But with reverse_followup values, we may want to play a 0
- * point move.
*/
- if (tot_value >= 0.5
- || (move[pos].reverse_followup_value >= 1.0)) {
+ if (tot_value >= 0.5) {
float old_tot_value = tot_value;
float contribution;
/* We adjust the value according to followup and reverse followup
Index: patterns/eyes.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/eyes.db,v
retrieving revision 1.45
diff -u -r1.45 eyes.db
--- patterns/eyes.db 7 Jan 2004 10:00:20 -0000 1.45
+++ patterns/eyes.db 14 Jan 2004 23:12:59 -0000
@@ -5593,7 +5593,7 @@
Pattern 78520
|.
-|X.
+|Xx
|XX
|.X
+--
@@ -5623,12 +5623,56 @@
Pattern 78523
+|.
+|XX
+|*X
+|.X
++--
+
+:1122
+
+
+Pattern 78524
+
+ .
+|XX
+|*X
+|.X
++--
+
+:1122
+
+
+Pattern 78525
+
+
+|XX
+|*X
+|.X.
++---
+
+:1122
+
+
+Pattern 78526
+
|xx
|XX
|.*.
+---
:1122
+
+
+Pattern 78527
+
+ .
+|XX
+|XX
+|.X
++--
+
+:1111
Pattern 78550
Index: patterns/patterns.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/patterns.db,v
retrieving revision 1.121
diff -u -r1.121 patterns.db
--- patterns/patterns.db 7 Jan 2004 10:00:20 -0000 1.121
+++ patterns/patterns.db 14 Jan 2004 23:12:59 -0000
@@ -280,6 +280,7 @@
# tm modified (3.1.10)
# (compare Conn315)
# gf Added n classification. (3.3.16)
+# gf Revised constraint. (3.5.4)
O? cut!
*X
@@ -289,9 +290,9 @@
O?
*A
-BO
+Bc
-; oplay_attack_either(*,A,B)
+;lib(c)>1 && oplay_attack_either(*,A,B)
Pattern CC13b
@@ -12738,23 +12738,24 @@
; owl_threatens(*,A)
-Pattern EJ61
-
-o.X?? follow through after hane
-O.XO.
-.XO*.
-.....
------
-
-:8,J
-
-o.X??
-O.XA.
-.XO*.
-.....
------
-
-; !critical(A)
+# Pattern EJ61
+# gf Removed. This move may fail to secure life. (3.5.4)
+#
+# o.X?? follow through after hane
+# O.XO.
+# .XO*.
+# .....
+# -----
+#
+# :8,J
+#
+# o.X??
+# O.XA.
+# .XO*.
+# .....
+# -----
+#
+# ; !critical(A)
Pattern EJ62a
Index: patterns/patterns2.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/patterns2.db,v
retrieving revision 1.68
diff -u -r1.68 patterns2.db
--- patterns/patterns2.db 7 Jan 2004 10:00:20 -0000 1.68
+++ patterns/patterns2.db 18 Jan 2004 13:57:37 -0000
@@ -3225,6 +3225,25 @@
> good_attack_threat(*,A)
+Pattern Sente23
+# gf New pattern. (3.5.4)
+# See trevorc:450.
+
+?OX
+O.O
+O*X
+
+:8,O
+
+?OX
+a.c
+a*B
+
+;lib(a)>3 && alive(B) && xplay_attack(*,c)
+
+>prevent_attack_threat(c);
+
+
########################################################
#
# Double threat moves and defense against double threats