gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] trevor_1_23.4.tar.gz


From: Gunnar Farneback
Subject: Re: [gnugo-devel] trevor_1_23.4.tar.gz
Date: Wed, 06 Feb 2002 19:46:53 +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)

Trevor wrote:
> >> Pattern RA007
> >> 
> >> X*   snapback
> >> X.
> >> 
> >> :-,A,value(75)
> >> 
> >> aA   snapback
> >> ab
> >> 
> >> ; rgoal[a] == 1 
> >> ; && NORTH(A) != color
> >> ; && SOUTH(A) != color
> >> ; && EAST(A) != color
> >> ; && WEST(A) != color
> >> ; && olib(A) == 1 && xlib(b)==1
> >
> >Why this complex constraint? Wouldn't it be more straightforward and
> >efficient to modify the pattern to the one below?
> >
> >?x?
> >X*x
> >X.?
> >
> >/Gunnar
> 
> The problem with this is that it doesn't match correctly at the edge,
> which it should. 

Right, wasn't thinking of the edge behavior.

> There is a complexity throughout the code, of having special edge
> patterns, corner patterns, and center patterns. This is a good
> example.

Usually the center, edges, and corners are dissimilar enough to need
distinct patterns, or are you disagreeing about that?

> I guess I have 2 options:
>  - leave as is.
>  - make special case edge patterns.

In the latter case you can at least skip the corner variation. :-) But
there's also a third possibility:

- Create an "isolated_stone" autohelper.

/Gunnar



reply via email to

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