mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-17 23:56:23 +08:00
game result bugfix
This commit is contained in:
@@ -18,7 +18,7 @@ def parse_result(result_str:str, board:chess.Board) -> int:
|
|||||||
if board.turn == chess.WHITE:
|
if board.turn == chess.WHITE:
|
||||||
return 1
|
return 1
|
||||||
else:
|
else:
|
||||||
return 0
|
return -1
|
||||||
else:
|
else:
|
||||||
print("illeagal result", result_str)
|
print("illeagal result", result_str)
|
||||||
raise ValueError
|
raise ValueError
|
||||||
|
|||||||
Reference in New Issue
Block a user