From 0a252433b803afd4286f783f4c7c98b9c82ac8f9 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Mon, 14 Mar 2016 06:31:21 +0000
Subject: [PATCH] fixed ko bug

---
 src/go.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/go.c b/src/go.c
index 5f8a418..013d4e1 100644
--- a/src/go.c
+++ b/src/go.c
@@ -117,7 +117,7 @@
     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);
 }

--
Gitblit v1.10.0