summaryrefslogtreecommitdiff
path: root/chess-gnuchess.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-gnuchess.el')
-rw-r--r--chess-gnuchess.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/chess-gnuchess.el b/chess-gnuchess.el
index 1151291..6eb26c0 100644
--- a/chess-gnuchess.el
+++ b/chess-gnuchess.el
@@ -41,8 +41,10 @@
(chess-engine-send nil "quit\n"))
((eq event 'setup)
- (chess-engine-send nil (format "setboard %s\n"
- (chess-pos-to-fen (car args)))))
+ (let ((file (make-temp-file "gch")))
+ (with-temp-file file
+ (insert (chess-pos-to-fen (car args)) ?\n))
+ (chess-engine-send nil (format "epdload %s\n" file))))
((eq event 'pass)
(chess-engine-send nil "go\n"))