tweaked mcts score evaluation: considered steps when scoring the board

This commit is contained in:
2024-01-24 18:12:32 +01:00
parent 5645657fdd
commit 7011a9a6e8
3 changed files with 9 additions and 7 deletions

View File

@@ -177,6 +177,6 @@ def score_stockfish(board: chess.Board) -> chess.engine.PovScore:
:return:
"""
engine = chess.engine.SimpleEngine.popen_uci("./stockfish/stockfish-ubuntu-x86-64-avx2")
info = engine.analyse(board, chess.engine.Limit(depth=20))
info = engine.analyse(board, chess.engine.Limit(depth=2))
engine.quit()
return info["score"]