Skip to content

Commit 91996e2

Browse files
committed
Do nothing for UCI engines
UCI engines do not expect to get a message once a game ends.
1 parent dc2e284 commit 91996e2

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

chess/engine.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,13 +1819,7 @@ def engine_terminated(self, engine: UciProtocol, exc: Exception) -> None:
18191819
return await self.communicate(UciAnalysisCommand)
18201820

18211821
async def send_game_result(self, board: chess.Board, winner: Optional[Color] = None, game_ending: Optional[str] = None, game_complete: bool = True) -> None:
1822-
class UciGameResultCommand(BaseCommand[UciProtocol, None]):
1823-
def start(self, engine: UciProtocol) -> None:
1824-
engine._position(board) # Send final board position
1825-
self.result.set_result(None)
1826-
self.set_finished()
1827-
1828-
return await self.communicate(UciGameResultCommand)
1822+
pass
18291823

18301824
async def quit(self) -> None:
18311825
self.send_line("quit")

0 commit comments

Comments
 (0)