summaryrefslogtreecommitdiff
path: root/chess.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-10 22:58:11 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-10 22:58:11 +0000
commite0d27e16375133dbc77778a5787842017673dc4b (patch)
tree62b655407aef0c7ed26e05bee32c505dc2242493 /chess.el
parentfa6fd6dc166f6d333ddb9c94271647956f86598d (diff)
added support in chess-link.el to link two engines together. if both
are computers, then they will play head to head
Diffstat (limited to 'chess.el')
-rw-r--r--chess.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/chess.el b/chess.el
index c789d05..1f9654e 100644
--- a/chess.el
+++ b/chess.el
@@ -129,8 +129,10 @@ minibuffer, which works well for Emacspeak users."
(chess-display-set-main display)
(let ((engine-module
(if arg
- (intern (or (read-string "Engine module to play against: ")
- "chess-none"))
+ (intern
+ (or (concat "chess-"
+ (read-string "Engine module to play against: "))
+ "chess-none"))
chess-default-engine)))
(let ((engine-module (or engine chess-default-engine)))
(let ((engine (chess-engine-create engine-module)))