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): if Goban.libboard.is_legal(realpos, color):
Goban.libboard.play_move(realpos, color) Goban.libboard.play_move(realpos, color)
self.to_move = self.OTHER_COLOR(self.to_move)
return True return True
else: else:
return False return False