From 2fd0523078055d5bce3c7b3860b0fd404a1750a9 Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Wed, 18 Apr 2012 17:57:58 -0400 Subject: [PATCH] Fixed ko checking --- lib/goban.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/goban.py b/lib/goban.py index ba7e770..311ffc5 100644 --- a/lib/goban.py +++ b/lib/goban.py @@ -180,7 +180,7 @@ class Goban: self.white_captures += captures # Check for ko - if captures == 1 and self._num_liberties(pos, color): + if captures == 1 and self._num_liberties(pos, color) == 1: # find the empty point for p in self._neighbors(pos): if self.board[p] == Goban.EMPTY: