update parent analysis if top move is played -- should lead to less frustration with hints not matching result
This commit is contained in:
1 parent
24f8deab8b
commit
2419916abd
1 file changed
+4
@@ -56,6 +56,10 @@ class Move:
|
|||||||
else:
|
else:
|
||||||
self.analysis = analysis_blob["moveInfos"]
|
self.analysis = analysis_blob["moveInfos"]
|
||||||
self.ownership = analysis_blob["ownership"]
|
self.ownership = analysis_blob["ownership"]
|
||||||
|
if self.parent and self.parent.analysis and self.parent.analysis[0]["move"] == self.gtp():
|
||||||
|
self.parent.analysis[0]["scoreLead"] = self.analysis[0]["scoreLead"]
|
||||||
|
if self.children and self.children[0].analysis and self.children[0].gtp() == self.analysis[0]["move"]:
|
||||||
|
self.analysis[0]["scoreLead"] = self.children[0].analysis[0]["scoreLead"] # if received out of order, some edge case with undos ignored
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def analysis_ready(self):
|
def analysis_ready(self):
|
||||||
|
|||||||
Reference in new issue
Block a user