summaryrefslogtreecommitdiff
path: root/chess-ply.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-15 06:52:15 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-15 06:52:15 +0000
commit2ad08a62d61297cb4fad53976b41068e63e3e459 (patch)
treef26a59d4acc9cbc3d0c2247a65a70213b5ca55ec /chess-ply.el
parent9d1e1415d59adc63655c7c6759db2deb91e1a141 (diff)
*** no comment ***
Diffstat (limited to 'chess-ply.el')
-rw-r--r--chess-ply.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/chess-ply.el b/chess-ply.el
index b9141c7..9830ed1 100644
--- a/chess-ply.el
+++ b/chess-ply.el
@@ -71,8 +71,12 @@
(defun chess-ply-keyword (ply keyword)
(let ((item (memq keyword (chess-ply-changes ply))))
(if item
- (if (memq keyword '(:which :promote))
- (cdr item)
+ ;; these are special keywords which use a value argument;
+ ;; `which' is for disambiguating algebraic moves, `promote'
+ ;; indicates the piece to promote to, `white' is white's
+ ;; remaining time in seconds, and similarly for `black'
+ (if (memq keyword '(:which :promote :white :black))
+ (cadr item)
t))))
(defsubst chess-ply-source (ply)