status, sgf

This commit is contained in:
Sander Land committed 2020-04-28 22:02:00 +02:00
1 parent 6854812cbe
commit 7a0fe66d70
15 files changed
+241 -103

No files matched your search

+1 -1
View File
@@ -82,7 +82,7 @@ class SGFNode:
sys.setrecursionlimit(max(sys.getrecursionlimit(), 3 * 29 * 29)) # thanks to lightvector for causing stack overflows
sgf_str = "".join([prop + "".join(f"[{v}]" for v in values) for prop, values in self.sgf_properties(**xargs).items() if values])
if self.children:
children = [c.sgf() for c in self.children]
children = [c.sgf(**xargs) for c in self.children]
if len(children) == 1:
sgf_str += ";" + children[0]
else: