summaryrefslogtreecommitdiff
path: root/chess-engine.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-15 02:45:42 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-15 02:45:42 +0000
commite9568bd14aaeb1a78da525f1b1e2c5669317069d (patch)
tree04fcb09177638c42e15e2a2bc6853f413c01306a /chess-engine.el
parent8e27000c6be74218671ffc92db748e07b2242b54 (diff)
*** no comment ***
Diffstat (limited to 'chess-engine.el')
-rw-r--r--chess-engine.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/chess-engine.el b/chess-engine.el
index 4d9613b..470e1a2 100644
--- a/chess-engine.el
+++ b/chess-engine.el
@@ -113,6 +113,8 @@
(if (chess-game-data chess-engine-game 'my-color)
(chess-game-set-data chess-engine-game 'my-color nil)))
(chess-game-move chess-engine-game (car args))
+ (if (chess-game-over-p chess-engine-game)
+ (chess-game-set-data chess-engine-game 'active nil))
t))))
((eq event 'pass)