fix order bug

This commit is contained in:
Sander Land committed 2020-09-16 22:27:56 +02:00
1 parent 655b4f131f
commit 9c27026b2e
1 file changed
+4 -2
+4 -2
View File
@@ -97,8 +97,10 @@ class GameNode(SGFNode):
"order": 999,
**move_analysis,
} # some default values for keys missing in rootInfo
elif cur["visits"] < move_analysis["visits"]:
cur.update(move_analysis)
else:
cur["order"] = min(cur["order"], move_analysis.get("order", 999)) # parent arriving after child
if cur["visits"] < move_analysis["visits"]:
cur.update(move_analysis)
def set_analysis(self, analysis_json: Dict, refine_move: Optional[Move], alternatives_mode: bool):
if refine_move: