mlang pushed a commit to branch externals/chess in repository elpa. commit 298db38184bbf31c1f69eae7b58e43f36ac4e36f Author: Mario Lang <ml...@delysid.org> Date: Thu Oct 2 19:41:03 2014 +0200
[chess-ai] Handle pass. --- ChangeLog | 4 ++++ chess-ai.el | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7a1d31c..e512756 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-10-02 Mario Lang <ml...@delysid.org> + + * chess-ai.el (chess-ai-handler): Handle pass. + 2014-09-23 Mario Lang <ml...@delysid.org> * chess-display.el (chess-display-yank-board): Fix FEN insertion. diff --git a/chess-ai.el b/chess-ai.el index 1a19f34..75e5047 100644 --- a/chess-ai.el +++ b/chess-ai.el @@ -324,7 +324,7 @@ DEPTH defaults to the value of `chess-ai-depth'." (when (chess-game-over-p game) (chess-game-set-data game 'active nil))) - ((eq event 'post-move) + ((memq event '(post-move pass)) (unless (chess-game-over-p game) (let ((chess-display-handling-event nil) (position (chess-engine-position nil)))