summaryrefslogtreecommitdiff
path: root/chess-network.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-08 23:03:39 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-08 23:03:39 +0000
commitc67544683ffed1660bad0d5e67a6e5d47e288be1 (patch)
treeb1fe54ca64b0458e753e77aec16368c012a77fb8 /chess-network.el
parentecaf5a3842adc0bd38b069184a031b8530c620cb (diff)
*** no comment ***
Diffstat (limited to 'chess-network.el')
-rw-r--r--chess-network.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/chess-network.el b/chess-network.el
index c2aae2c..8c4f558 100644
--- a/chess-network.el
+++ b/chess-network.el
@@ -16,7 +16,7 @@
(cons "pass"
(function
(lambda ()
- (message "Your opponent has passed the move to you"))))
+ (funcall chess-engine-response-handler 'pass))))
(cons "name\\s-+\\(.+\\)"
(function
(lambda ()
@@ -25,14 +25,12 @@
(cons "fen\\s-+\\(.+\\)"
(function
(lambda ()
- (let* ((position (chess-fen-to-pos (match-string 1)))
- (ply (chess-ply-create position)))
- (chess-game-set-plies (chess-engine-game nil)
- (list ply))))))
+ (funcall chess-engine-response-handler 'setup
+ (match-string 1)))))
(cons "quit"
(function
(lambda ()
- (message "Your opponent has quit playing"))))))
+ (funcall chess-engine-response-handler 'quit))))))
(defun chess-network-perform-move ()
(let* ((move (match-string 1))