Skip to content

Commit 1c2b213

Browse files
authored
Merge pull request niklasf#784 from MarkZH/bot-draw-fix
Make sure engines support draw offers (followup to niklasf#783)
2 parents 750f0d6 + 34bcb49 commit 1c2b213

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chess/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2113,7 +2113,7 @@ def start(self, engine: XBoardProtocol) -> None:
21132113
if limit.black_clock is not None:
21142114
engine.send_line("{} {}".format("otim" if board.turn else "time", max(1, int(limit.black_clock * 100))))
21152115

2116-
if draw_offered:
2116+
if draw_offered and engine.features.get("draw", 1):
21172117
engine.send_line("draw")
21182118

21192119
# Start thinking.

0 commit comments

Comments
 (0)