summaryrefslogtreecommitdiff
path: root/chess-common.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-13 01:14:32 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-13 01:14:32 +0000
commit3ab3e41f5023e699e56d9b5171264c5e62854540 (patch)
treee9efa453c7b2422034f1ab4e85bf10ae221fa5a2 /chess-common.el
parent1b173a311002cdd6fa0b0f0dee916815e513f1ed (diff)
*** no comment ***
Diffstat (limited to 'chess-common.el')
-rw-r--r--chess-common.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/chess-common.el b/chess-common.el
index 7019bb9..7161e73 100644
--- a/chess-common.el
+++ b/chess-common.el
@@ -13,11 +13,11 @@
(make-variable-buffer-local 'chess-common-temp-files)
(defmacro chess-with-temp-file (&rest body)
- (let ((file (make-temp-file "chess")))
- (with-temp-file file
- ,@body)
- (push file chess-common-temp-files)
- file))
+ `(let ((file (make-temp-file "chess")))
+ (with-temp-file file
+ ,@body)
+ (push file chess-common-temp-files)
+ file))
(put 'chess-with-temp-file 'lisp-indent-function 1)
@@ -65,6 +65,8 @@
(when (chess-engine-game nil)
(dotimes (i (car args))
(chess-engine-send nil "undo\n"))
+ (if (= 1 (mod (car args) 2))
+ (chess-engine-send nil "go\n"))
(chess-game-undo (chess-engine-game nil) (car args))))
((eq event 'move)