Fix color changing between moves

This commit is contained in:
Anna Rose 2012-04-13 01:41:33 -04:00
parent 18e14f61e6
commit bcdd131be7
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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)