gnugo-devel
[Top][All Lists]
Advanced

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

[gnugo-devel] Owl code & shoulders


From: Trevor Morris
Subject: [gnugo-devel] Owl code & shoulders
Date: Wed, 17 Oct 2001 11:27:34 -0400

Does the OWL code have any support for identifying shoulders of eyes?
The following points labelled A, B, and C are what I mean by shoulders:


AOA   BOB  CO|
O.O   O.O  O.|
AOA   ---  --+


In the first case, O must control (either with a stone there, or by
being able to capture an X stone put there) 3 or the 4 shoulders
(labeled A) for the '.' to be an eye.  (There are, of course, very
strange exceptions, but this is almost always true.)

In the second case, O must control both shoulders (labeled B).

In the third case, O must control the single should C for '.' to 
be an eye.


Problem trevor.tst 450 (in the attached patch tar.gz) is an example 
where such a concept would be very useful, either in the core OWL 
code, or as helper functions to OWL patterns, I think.  I'm not
sure quite how to attack this one.


http://www.public32.com/games/go/trevor_1_11.5.tar.gz
 - 3 new test cases & files to trevor.tst
 - regress.pl now uses FindBin to find GoImage.

-Trevor


Index: regress.pl
===================================================================
RCS file: /cvsroot/gnugo/gnugo/regression/regress.pl,v
retrieving revision 1.5
diff -u -r1.5 regress.pl
--- regress.pl  2001/10/17 00:07:11     1.5
+++ regress.pl  2001/10/17 15:18:38
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -I../interface
+#!/usr/bin/perl
 
 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
 # This program is distributed with GNU GO, a Go program.        #
@@ -40,6 +40,9 @@
 use IPC::Open3;
 use Getopt::Long;
 use FileHandle;
+
+use FindBin;
+use lib "$FindBin::Bin/../interface";
 
 use GoImage::Stone;
 
Index: trevor.tst
===================================================================
RCS file: /cvsroot/gnugo/gnugo/regression/trevor.tst,v
retrieving revision 1.14
diff -u -r1.14 trevor.tst
--- trevor.tst  2001/10/15 17:35:07     1.14
+++ trevor.tst  2001/10/17 15:18:40
@@ -450,3 +450,29 @@
 loadsgf games/trevor/trevor_42.sgf 191
 421 gg_genmove black
 #? [!C2]*
+
+
+#CATEGORY=owl_tuning
+#DESCRIPTION=Very simple problem.
+#SEVERITY=10
+loadsgf games/trevor/trevor_43.sgf
+430 owl_attack F4
+#? [G4]*
+
+#CATEGORY=owl_tuning
+#DESCRIPTION=Simple double atari
+#SEVERITY=4
+#Note that owl_attack on E3 works, as these stones are treated
+#as separate dragons.  Strange.  Is this a valid test?
+#So, gg_genmove defends appropriately.
+loadsgf games/trevor/trevor_44.sgf
+440 owl_attack E6
+#? [F4]*
+
+#CATEGORY=owl_tuning
+#DESCRIPTION=Double-threat to eye-space missed.
+#SEVERITY=10
+loadsgf games/trevor/trevor_45.sgf
+450 owl_attack E4
+#? [D4]*
+





reply via email to

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