[Computer-go] detecting cross inside an eye

dave.devos at planet.nl dave.devos at planet.nl
Thu May 10 13:29:21 PDT 2012


Or all 4 immediate neighbours are of my color and my opponent occupies less than half of the diagonal neighbours (works in the center and on the sides and corners).

Dave

________________________________

Van: computer-go-bounces at dvandva.org namens Álvaro Begué
Verzonden: do 10-5-2012 20:04
Aan: computer-go at dvandva.org
Onderwerp: Re: [Computer-go] detecting cross inside an eye



On Thu, May 10, 2012 at 1:51 PM, folkert <folkert at vanheusden.com> wrote:
> Yes indeed.
>
> It has been a couple of years since I worked on stop so I've got a fresh
> look at it.
> Some code is really interesting.
>
> It seems there's already some code in it doing this check.
>
> Not entirely sure if it is correct:
> - if there are 4 direct neighbours of my color and the number of
>  opponent stones in the diagonal <= x
> or
> - if there are 4 direct neighbours of opponent color and the number of
>  my stones in diagonal <= x
> where:
> - if the eye is at the left row or the right row or the uppr row or
>  bottom row, then x = 0 (so if is on the edge), else x=1 (but i expect
> that '1' to be a typo which should've been 2)

You only need to check the first rule (i.e., don't play on points that
look like your own eyes). And it does look like Rémi got the language
slightly wrong. The rule should be: All 4 immediate neighbours are of
my color and the opponent has no more than one (zero on the side)
stone(s) in diagonal.


Álvaro.
_______________________________________________
Computer-go mailing list
Computer-go at dvandva.org
http://dvandva.org/cgi-bin/mailman/listinfo/computer-go


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://computer-go.org/pipermail/computer-go/attachments/20120510/e9d00c13/attachment.html>


More information about the Computer-go mailing list