summaryrefslogtreecommitdiff
path: root/chess-link.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-15 05:40:38 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-15 05:40:38 +0000
commitef7c29d679c6aaf8dda55772e65800097c46f163 (patch)
tree543f39f09bfaa6d44606804c18babff26470d4f8 /chess-link.el
parent6fbcc92505250d896b5d408483822b115bc614c7 (diff)
*** no comment ***
Diffstat (limited to 'chess-link.el')
-rw-r--r--chess-link.el11
1 files changed, 5 insertions, 6 deletions
diff --git a/chess-link.el b/chess-link.el
index 9552a0f..dd57632 100644
--- a/chess-link.el
+++ b/chess-link.el
@@ -13,9 +13,9 @@
(defun chess-link-response-handler (event &rest args)
"This function handles responses from the bot's computing engine."
(let ((first-engine
- (chess-game-data chess-engine-game 'first-engine))
+ (chess-game-data (chess-engine-game nil) 'first-engine))
(second-engine
- (chess-game-data chess-engine-game 'second-engine))
+ (chess-game-data (chess-engine-game nil) 'second-engine))
return-value)
(cond
((eq event 'match)
@@ -53,8 +53,7 @@ engine, and the computer the second engine."
(require chess-default-display)
(let* ((my-color t) ; we start out as white always
(game (chess-game-create))
- (display (chess-display-create game chess-default-display
- my-color)))
+ (display (chess-create-display-object my-color)))
(chess-game-set-data game 'my-color my-color)
(chess-display-set-main display)
(chess-display-disable-popup display)
@@ -62,9 +61,9 @@ engine, and the computer the second engine."
(when (and (require first-engine-type)
(require second-engine-type))
(let ((first-engine
- (chess-engine-create game first-engine-type))
+ (chess-engine-create first-engine-type game))
(second-engine
- (chess-engine-create game second-engine-type)))
+ (chess-engine-create second-engine-type game)))
(chess-game-set-data game 'first-engine first-engine)
(chess-engine-command first-engine 'ready)