From 8422537908f3c0df39c03de5b0314fda174410af Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 9 Jan 2011 02:42:14 +0100 Subject: [PATCH] Selfatari: Track neighbors corresponding to groups in groupneis[] --- tactics/selfatari.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tactics/selfatari.c b/tactics/selfatari.c index e8e4423..05ce527 100644 --- a/tactics/selfatari.c +++ b/tactics/selfatari.c @@ -12,6 +12,7 @@ struct selfatari_state { int groupcts[S_MAX]; group_t groupids[S_MAX][4]; + coord_t groupneis[S_MAX][4]; /* This is set if this move puts a group out of _all_ * liberties; we need to watch out for snapback then. */ @@ -419,6 +420,7 @@ is_bad_selfatari_slow(struct board *b, enum stone color, coord_t to) break; } if (!dup) { + s.groupneis[color][s.groupcts[color]] = c; s.groupids[color][s.groupcts[color]++] = group_at(b, c); } }); -- 2.11.4.GIT