[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] trevor_1_13.6
From: |
Trevor Morris |
Subject: |
[gnugo-devel] trevor_1_13.6 |
Date: |
Fri, 02 Nov 2001 09:49:39 -0500 |
http://www.public32.com/games/go/trevor_1_13.6
- Turns Malformed line warning into error in mkpat.
- Corrected tunings from previous patch.
Index: patterns/mkpat.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/mkpat.c,v
retrieving revision 1.24
diff -u -r1.24 mkpat.c
--- patterns/mkpat.c 2001/11/01 23:38:30 1.24
+++ patterns/mkpat.c 2001/11/02 14:16:00
@@ -1635,9 +1635,15 @@
pattern_names[patno]);
}
}
- else
- fprintf(stderr, "Warning, malformed line \"%s\" in pattern %s\n",
- line, pattern_names[patno]);
+ else {
+ int i = strlen(line);
+ char c = line[i-1];
+ line[i-1] = 0; /*Chop of \n*/
+ fprintf(stderr, "%s(%d) : error : Malformed line \"%s\" in pattern
%s\n",
+ current_file, current_line_number, line, pattern_names[patno]);
+ line[i-1]=c; /*Put it back - maybe not necessary at this point.*/
+ fatal_errors++;
+ }
}
if (patno >= 0) {
@@ -1697,7 +1703,11 @@
#endif
- write_pattern_db(output_FILE, argv[gg_optind]);
+ write_pattern_db(output_FILE, argv[gg_optind]);
+
+ if (fatal_errors) {
+ fprintf(output_FILE, "\n#error: One or more fatal errors compiling
%s\n", current_file);
+ }
return fatal_errors ? 1 : 0;
}
Index: patterns/owl_attackpats.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/owl_attackpats.db,v
retrieving revision 1.18
diff -u -r1.18 owl_attackpats.db
--- patterns/owl_attackpats.db 2001/10/30 16:42:00 1.18
+++ patterns/owl_attackpats.db 2001/11/02 14:16:05
@@ -426,8 +426,8 @@
-----
:8,-,value(78)
-
-
+
+
Pattern A208
# This pattern has the problem that it's often inappropriate in
# positions like
@@ -870,7 +870,7 @@
; oplay_attack(*,a,b,c,c)
-Pattern A333
+Pattern A233
# db added (3.1.10)
OO.? Jump and block
@@ -880,6 +880,20 @@
----
:8,-,value(75)
+
+
+# Descend to attack. Possibly defend vulnerable stone.
+# Useful in arb:231
+# new pattern (3.1.13) -trevor
+Pattern A234
+
+xX defend vulnerable stone.
+XO
+.*
+..
+--
+
+:8,-,value(20)
@@ -3527,6 +3541,21 @@
:8,s,value(40)
+
+# Useful for manyfaces:8
+# new pattern 3.1.13 -trevor
+Pattern A1341
+
+?X?| vital corner point
+X.X|
+X..|
+X.*|
+...|
+---+
+
+
+:8,s,value(40)
+
#########################################################
# #
Index: patterns/owl_defendpats.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/owl_defendpats.db,v
retrieving revision 1.19
diff -u -r1.19 owl_defendpats.db
--- patterns/owl_defendpats.db 2001/10/30 16:42:00 1.19
+++ patterns/owl_defendpats.db 2001/11/02 14:16:12
@@ -2750,6 +2750,20 @@
+---
;oplay_defend(*,A) != WIN
+
+
+#useful in manyfaces:8
+#new pattern 3.1.13 -trevor
+Pattern D833
+
+?O?| vital corner point.
+O.O|
+O.x|
+O.*|
+...|
+---+
+
+:8,-,value(40)
#########################################################
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnugo-devel] trevor_1_13.6,
Trevor Morris <=