summaryrefslogtreecommitdiff
path: root/chess-crafty.el
diff options
context:
space:
mode:
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