PL[W] fix?
This commit is contained in:
1 parent
e6771e6d1b
commit
14dd5d58f4
1 file changed
+2
-2
@@ -275,7 +275,7 @@ class SGFNode:
|
||||
@property
|
||||
def next_player(self):
|
||||
"""Returns player to move"""
|
||||
if "B" in self.properties or "AB" in self.properties: # root or black moved
|
||||
if "B" in self.properties or ("AB" in self.properties and not "W" in self.properties): # root or black moved
|
||||
return "W"
|
||||
else:
|
||||
return "B"
|
||||
@@ -283,7 +283,7 @@ class SGFNode:
|
||||
@property
|
||||
def player(self):
|
||||
"""Returns player that moved last. nb root is considered white played if no handicap stones are placed"""
|
||||
if "B" in self.properties or "AB" in self.properties:
|
||||
if "B" in self.properties or ("AB" in self.properties and not "W" in self.properties):
|
||||
return "B"
|
||||
else:
|
||||
return "W"
|
||||
|
||||
Reference in new issue
Block a user