summaryrefslogtreecommitdiff
path: root/chess-engine.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-12 23:08:08 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-12 23:08:08 +0000
commitcd53b65c1dae595bf07e6b6cf211a94e945f1f58 (patch)
tree41f93cc150e983fcbf4922e7be7bf40b7119e37b /chess-engine.el
parent6f1dce941bfca03ba45c39d64064e93a8e2397ed (diff)
*** no comment ***
Diffstat (limited to 'chess-engine.el')
-rw-r--r--chess-engine.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/chess-engine.el b/chess-engine.el
index b097fe3..f90c504 100644
--- a/chess-engine.el
+++ b/chess-engine.el
@@ -120,7 +120,9 @@
(format "Do you wish to play a chess game against an anonymous opponent? ")))
(progn
(let ((chess-engine-handling-event t))
- (chess-game-set-data game 'active t))
+ (unless game
+ (setq game (chess-engine-set-game nil (chess-game-create))))
+ (chess-engine-set-start-position nil))
(chess-engine-command nil 'accept))
(chess-engine-command nil 'decline)))
t)