diff --git a/lib/goban.py b/lib/goban.py index 66dbcea..6b96a09 100644 --- a/lib/goban.py +++ b/lib/goban.py @@ -84,6 +84,7 @@ class Goban: if Goban.libboard.is_legal(realpos, color): Goban.libboard.play_move(realpos, color) + self.to_move = self.OTHER_COLOR(self.to_move) return True else: return False diff --git a/pygo.py b/pygo.py index ff8c35e..b8d3ec4 100755 --- a/pygo.py +++ b/pygo.py @@ -112,7 +112,7 @@ def main(): if x <= board_size: if event.button == 1: - goban.play_move((col, row)) + goban.play_move((col,row)) board = goban.draw_board(board_size, img_res)