tweak
This commit is contained in:
1 parent
a646c32939
commit
40ae451bef
12 files changed
+283
-326
No files matched your search
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user