fix initial player

This commit is contained in:
Sander Land committed 2021-01-17 11:16:38 +01:00
1 parent a58394445a
commit 319fc7dd43
1 file changed
+1 -1
+1 -1
View File
@@ -304,7 +304,7 @@ class SGFNode:
def initial_player(self): # player for first node
root = self.root
if "PL" in root.properties: # explicit
return "B" if self.get_property("PL").upper().strip() == "B" else "W"
return "B" if self.root.get_property("PL").upper().strip() == "B" else "W"
elif root.children: # child exist, use it if not placement
for child in root.children:
for color in "BW":