fix order bug
This commit is contained in:
1 parent
655b4f131f
commit
9c27026b2e
1 file changed
+4
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user