Fix relative default paths for stockfish and lc0

This commit is contained in:
DarkCider
2024-01-30 20:03:27 +01:00
parent f3d82d6b19
commit 94ed771bb8
2 changed files with 5 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ _DIR = os.path.abspath(os.path.dirname(__file__))
class Lc0Strategy(IStrategy):
def __init__(self, path="../lc0/lc0", rollout_depth: int = 4,
def __init__(self, path="lc0/lc0", rollout_depth: int = 4,
limit: chess.engine.Limit = chess.engine.Limit(depth=4)):
super().__init__(rollout_depth)
self._lc0 = None
@@ -35,5 +35,4 @@ class Lc0Strategy(IStrategy):
def analyze_board(self, board: chess.Board) -> int:
score = score_lc0(board, self.lc0)
print("lc0 score", score)
return score