From 53db61f897996d73ecef4f4d0b8dda44f05f14cf Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 13 Apr 2002 08:58:47 +0000 Subject: added support for highlighting legal plies --- chess-engine.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'chess-engine.el') diff --git a/chess-engine.el b/chess-engine.el index a207c34..f05ff56 100644 --- a/chess-engine.el +++ b/chess-engine.el @@ -57,8 +57,7 @@ (defsubst chess-engine-convert-algebraic (move &optional trust-check) (or (chess-algebraic-to-ply (chess-engine-position nil) move trust-check) - (ignore - (message "Received invalid move string: %s" move)))) + (chess-engine-command nil 'illegal))) (defsubst chess-engine-convert-fen (fen) (or (chess-fen-to-pos fen) @@ -234,7 +233,10 @@ (setq chess-engine-pending-offer nil chess-engine-pending-arg nil) - t)))) + t)) + + ((eq event 'illegal) + (message "Your opponent states your last command was illegal")))) (defun chess-engine-create (game module &optional response-handler &rest handler-ctor-args) -- cgit v1.2.3