summaryrefslogtreecommitdiff
path: root/chess-engine.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-05-16 17:28:18 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-05-16 17:28:18 +0000
commit59d1008283f339d6c6d146979c4cff0c6430b095 (patch)
tree530b969e5568e51caf57dc230a544e141c26bec1 /chess-engine.el
parent86493efa7a72ecda178e0ec5e7123c9761a61046 (diff)
miscellaneous fixes
Diffstat (limited to 'chess-engine.el')
-rw-r--r--chess-engine.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/chess-engine.el b/chess-engine.el
index 360ed19..8756962 100644
--- a/chess-engine.el
+++ b/chess-engine.el
@@ -56,7 +56,7 @@
(opp-abort . "Your opponent wants to abort this game, accept? ")
(opp-undo . "Your opponent wants to take back %d moves, accept? ")
(opp-ready . "Your opponent, %s, is now ready to play")
- (opp-ready-a . "Your opponent is now ready to play")
+ (opp-ready-a . "Your opponent is ready to play; pass or make your move")
(opp-draw-acc . "Your draw offer was accepted")
(opp-abort-acc . "Your offer to abort was accepted")
(opp-undo-acc . "Request to undo %d moves was accepted")
@@ -128,7 +128,7 @@
(setq chess-engine-opponent-name (or name "Anonymous"))
(let ((chess-engine-handling-event t))
(chess-engine-set-position nil))
- (chess-engine-command nil 'accept))
+ (chess-engine-command nil 'accept chess-full-name))
(chess-engine-command nil 'decline))))
t)
@@ -162,7 +162,6 @@
(let ((chess-engine-handling-event t))
(chess-message 'opp-resigned)
(chess-game-end game :resign)
- (chess-game-set-data game 'active nil)
t))
((eq event 'draw)
@@ -198,7 +197,8 @@
(when chess-engine-pending-offer
(if (eq chess-engine-pending-offer 'match)
(unless (chess-game-data game 'active)
- (let ((name (and (> (length (car args)) 0) (car args))))
+ (let ((name (and (> (length (car args)) 0)
+ (car args))))
(if name
(chess-message 'opp-ready (car args))
(chess-message 'opp-ready-a))