We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0512fe0 commit 885d59fCopy full SHA for 885d59f
1 file changed
chess/engine.py
@@ -2511,7 +2511,7 @@ def start(self, engine: XBoardProtocol) -> None:
2511
result = "*"
2512
ending = game_ending or ""
2513
elif winner is not None or game_ending:
2514
- result = "1-0" if winner == chess.WHITE else ("0-1" if winner == chess.BLACK else "1/2-1/2")
+ result = "1-0" if winner == chess.WHITE else "0-1" if winner == chess.BLACK else "1/2-1/2"
2515
2516
elif outcome is not None and outcome.winner is not None:
2517
result = outcome.result()
0 commit comments