Fix color changing between moves
This commit is contained in:
parent
18e14f61e6
commit
bcdd131be7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user