summaryrefslogtreecommitdiff
path: root/chess-crafty.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-crafty.el
parentf4e9c77bc700222590ada4799c619152354244f2 (diff)
More work to get engines working.
Diffstat (limited to 'chess-crafty.el')
-rw-r--r--chess-crafty.el15
1 files changed, 6 insertions, 9 deletions
diff --git a/chess-crafty.el b/chess-crafty.el
index 5418d36..d9038db 100644
--- a/chess-crafty.el
+++ b/chess-crafty.el
@@ -56,14 +56,11 @@
((eq event 'pass)
(chess-engine-send nil "go\n"))
((eq event 'move)
- (cond
- ((chess-engine-game nil)
- (chess-game-move (chess-engine-game nil) (car args)))
- (t
- (apply 'chess-pos-move (car args))))
- (chess-engine-send nil (concat (chess-ply-to-algebraic
- (car args) nil
- (chess-engine-search-function nil))
- "\n")))))
+ (chess-engine-send
+ nil (concat (chess-ply-to-algebraic
+ (car args) nil
+ (chess-engine-search-function nil)) "\n")))))
+
+(provide 'chess-crafty)
;;; chess-crafty.el ends here