From 0d88aacaee63aa887b089e963103aa3f1cef4891 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 9 Apr 2002 09:07:48 +0000 Subject: *** no comment *** --- chess-engine.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chess-engine.el') diff --git a/chess-engine.el b/chess-engine.el index 83416514..5c556aa 100644 --- a/chess-engine.el +++ b/chess-engine.el @@ -62,6 +62,11 @@ (let ((chess-engine-handling-event t)) (cond ((eq event 'move) + ;; if the game index is still 0, then our opponent is white, and + ;; we need to pass over the move + (if (= (chess-game-index (chess-engine-game nil)) 0) + (chess-game-run-hooks (chess-engine-game nil) 'pass)) + (let ((ply (chess-algebraic-to-ply (chess-engine-position nil) (car args)))) (if ply -- cgit v1.2.3