From 13a250b1c04c9089f154dac42ae95b1c333c92ec Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 15 Jan 2012 19:26:43 +0100 Subject: [PATCH] selfatari_cousin(): Check for filling eyes explicitly --- tactics/selfatari.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tactics/selfatari.c b/tactics/selfatari.c index 678c762..3d41865 100644 --- a/tactics/selfatari.c +++ b/tactics/selfatari.c @@ -545,6 +545,8 @@ selfatari_cousin(struct board *b, enum stone color, coord_t coord, group_t *bygr group_t group = groups[gn]; coord_t lib2 = board_group_other_lib(b, group, coord); + if (board_is_one_point_eye(b, lib2, board_at(b, group))) + return pass; if (is_bad_selfatari(b, color, lib2)) return pass; if (bygroup) -- 2.11.4.GIT