summaryrefslogtreecommitdiff
path: root/chess.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-12 01:17:38 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-12 01:17:38 +0000
commitcdba8a5aed3bd66e62f348a7064acece342bb68e (patch)
tree286d53818453b1872483a1c73fface221e87eb3a /chess.el
parentefeb1b7a6e0caea5d1722cce7a6414190cdeae06 (diff)
*** no comment ***
Diffstat (limited to 'chess.el')
-rw-r--r--chess.el17
1 files changed, 13 insertions, 4 deletions
diff --git a/chess.el b/chess.el
index 9e4e17c..2fb35ad 100644
--- a/chess.el
+++ b/chess.el
@@ -98,7 +98,7 @@ a0 243
"Default engine to be used when starting a chess session."
:type 'sexp
:group 'chess)
-(defcustom chess-announce-moves t
+(defcustom chess-announce-module 'chess-announce
(defcustom chess-announce-moves t
This happens verbally if 'festival' is installed, otherwise it just
prints a message in your minibuffer, which works well for Emacspeak
@@ -123,6 +123,14 @@ minibuffer, which works well for Emacspeak users."
(display (chess-display-create chess-default-display my-color))
(game (chess-game-create)))
+ (when (and (eq chess-default-display 'chess-images)
+ (with-current-buffer display
+ (null chess-images-size)))
+ (message "Could not find suitable chess images; using ics1 display")
+ (chess-display-destroy display)
+ (require 'chess-ics1)
+ (setq display (chess-display-create 'chess-ics1 my-color)))
+
(chess-display-disable-popup display))
(chess-display-set-game display game)
@@ -143,9 +151,10 @@ minibuffer, which works well for Emacspeak users."
;; computerized engines fall into this category), we need to
;; let them know we're ready to begin
(chess-engine-command engine 'ready))
- (when chess-announce-moves
- (require 'chess-announce)
- (chess-announce-for-game game))))
+ (when chess-announce-module
+ (require chess-announce-module)
+ (funcall (intern (concat (symbol-name chess-announce-module)
+ "-for-game")) game))))
(chess-announce-for-game game)))))))
(chess-display-update display t)))
(cons display engine)))