This commit is contained in:
Sander Land committed 2020-05-25 17:12:58 +02:00
1 parent a646c32939
commit 40ae451bef
12 files changed
+283 -326

No files matched your search

-2
View File
@@ -94,7 +94,6 @@ class GameNode(SGFNode):
def analysis_ready(self):
return self.analysis["root"] is not None
@property
def score(self) -> Optional[float]:
if self.analysis_ready:
@@ -179,7 +178,6 @@ class GameNode(SGFNode):
score = self.score
return self.player_sign(single_move.player) * (score - parent_parent_score)
@staticmethod
def player_sign(player):
return {"B": 1, "W": -1, None: 0}[player]