depth 1 on local + bugfix

This commit is contained in:
Sander Land committed 2020-12-14 23:20:50 +01:00
1 parent 4d05bcd6de
commit d25b851c93
3 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -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)