From 0a252433b803afd4286f783f4c7c98b9c82ac8f9 Mon Sep 17 00:00:00 2001 From: Joseph Redmon Date: Sun, 13 Mar 2016 23:31:21 -0700 Subject: [PATCH] fixed ko bug --- src/go.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/go.c b/src/go.c index 5f8a418e..013d4e1e 100644 --- a/src/go.c +++ b/src/go.c @@ -117,7 +117,7 @@ void update_board(float *board) int i; int *l = calculate_liberties(board); for(i = 0; i < 19*19; ++i){ - if (board[i] && !l[i]) board[i] = 0; + if (board[i] < 0 && !l[i]) board[i] = 0; } free(l); }