1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00

game result bugfix

This commit is contained in:
Anson Hu 2020-07-11 23:37:22 -07:00 committed by nodchip
parent fcb391919f
commit df40de9486

View file

@ -18,7 +18,7 @@ def parse_result(result_str:str, board:chess.Board) -> int:
if board.turn == chess.WHITE:
return 1
else:
return 0
return -1
else:
print("illeagal result", result_str)
raise ValueError