summaryrefslogtreecommitdiff
path: root/chess.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-08 07:41:57 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-08 07:41:57 +0000
commitb81694cba75b72dd0ab63c05c5bab6519c23f4dc (patch)
tree4dd05eecd52ef03b5f8d60ddff282dc3fc1bc2aa /chess.el
parent4d85f396891a7394540e7937d62820e55a51d068 (diff)
*** no comment ***
Diffstat (limited to 'chess.el')
-rw-r--r--chess.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/chess.el b/chess.el
index e0125ce..4f9e666 100644
--- a/chess.el
+++ b/chess.el
@@ -107,10 +107,12 @@ a0 243
(chess-display-create chess-default-display t) game)
(let ((engine-module
(if arg
- (intern-soft (read-string "Engine module to play against: "))
+ (intern (or (read-string "Engine module to play against: ")
+ "chess-none"))
chess-default-engine)))
- (require engine-module)
- (chess-engine-set-game (chess-engine-create engine-module) game))))
+ (when engine-module
+ (require engine-module)
+ (chess-engine-set-game (chess-engine-create engine-module) game)))))
(cons display engine)))
;;;###autoload