summaryrefslogtreecommitdiff
path: root/chess-engine.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-03 02:11:46 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-03 02:11:46 +0000
commitbc1b6e4f3789f4401ac5fe9bb9708459648345b0 (patch)
tree61016ff5f23823fe740c16755ebf800cc6d6bb9b /chess-engine.el
parentf4e9c77bc700222590ada4799c619152354244f2 (diff)
More work to get engines working.
Diffstat (limited to 'chess-engine.el')
-rw-r--r--chess-engine.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/chess-engine.el b/chess-engine.el
index 3bbfb91..678f5c3 100644
--- a/chess-engine.el
+++ b/chess-engine.el
@@ -139,6 +139,11 @@
(defun chess-engine-move (engine ply)
(chess-with-current-buffer engine
+ (cond
+ (chess-engine-game
+ (chess-game-move chess-engine-game ply))
+ (chess-engine-position
+ (apply 'chess-pos-move ply)))
(chess-engine-command engine 'move ply)))
(defun chess-engine-pass (engine ply)