From bc1b6e4f3789f4401ac5fe9bb9708459648345b0 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 3 Apr 2002 02:11:46 +0000 Subject: More work to get engines working. --- chess-crafty.el | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'chess-crafty.el') 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 -- cgit v1.2.3