depth 1 on local + bugfix
This commit is contained in:
1 parent
4d05bcd6de
commit
d25b851c93
3 files changed
+5
-3
No files matched your search
@@ -281,7 +281,7 @@ class SGFNode:
|
||||
def play(self, move) -> "SGFNode":
|
||||
"""Either find an existing child or create a new one with the given move."""
|
||||
for c in self.children:
|
||||
if c.move == move:
|
||||
if c.move and c.move == move:
|
||||
return c
|
||||
return self.__class__(parent=self, move=move)
|
||||
|
||||
|
||||
Reference in new issue
Block a user