From f3ea1b87370d4408fc0b0582655ba26c9871adf4 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 24 Apr 2002 18:26:08 +0000 Subject: set the engine option so that crafty doesn't resign --- chess-puzzle.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chess-puzzle.el') diff --git a/chess-puzzle.el b/chess-puzzle.el index e47dfe1..0491275 100644 --- a/chess-puzzle.el +++ b/chess-puzzle.el @@ -26,8 +26,11 @@ making it easy to go on to the next puzzle once you've solved one." (interactive "fRead chess puzzles from: ") (let* ((database (chess-database-open 'chess-file file)) (objects (and database (chess-session))) + (engine (car objects)) (display (cadr objects))) (when database + (if engine + (chess-engine-set-option engine 'resign nil)) (with-current-buffer display ;; make sure the database is closed when the display is shutdown (chess-game-add-hook (chess-display-game nil) -- cgit v1.2.3