From 2590c20a8c8cad135771245ffa187de8beb51c17 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Tue, 9 Feb 2010 14:38:07 +0100 Subject: [PATCH] Moggy test_pattern3_here(): Fix reversed selfatari test test_pattern3_here() would mistakenly allow _only_ self-atari 3x3 matches ;-) --- playout/moggy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playout/moggy.c b/playout/moggy.c index 04901e5..fbc9081 100644 --- a/playout/moggy.c +++ b/playout/moggy.c @@ -228,7 +228,7 @@ test_pattern3_here(struct playout_policy *p, struct board *b, struct move *m) if (!pattern3_move_here(&pp->patterns, b, m)) return false; /* ...and the move is not obviously stupid. */ - if (!is_bad_selfatari(b, m->color, m->coord)) + if (is_bad_selfatari(b, m->color, m->coord)) return false; /* Ladder moves are stupid. */ group_t atari_neighbor = board_get_atari_neighbor(b, m->coord, m->color); -- 2.11.4.GIT