summaryrefslogtreecommitdiff
path: root/chess-network.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-13 08:58:47 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-13 08:58:47 +0000
commit53db61f897996d73ecef4f4d0b8dda44f05f14cf (patch)
treecbdba16932bb64d4f8b0775e71a73c50d4c104ca /chess-network.el
parent2725f734a7cc15d27bfebeac3e986ff6af31d97b (diff)
added support for highlighting legal plies
Diffstat (limited to 'chess-network.el')
-rw-r--r--chess-network.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/chess-network.el b/chess-network.el
index c5e92c9..b4456d8 100644
--- a/chess-network.el
+++ b/chess-network.el
@@ -142,6 +142,9 @@
((eq event 'retract)
(chess-engine-send nil "retract\n"))
+ ((eq event 'illegal)
+ (chess-engine-send nil "illegal\n"))
+
((eq event 'move)
(chess-engine-send nil (concat (chess-ply-to-algebraic (car args)) "\n"))
(if (chess-game-over-p chess-engine-game)