summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Lang <mlang@delysid.org>2004-01-06 02:31:57 +0000
committerMario Lang <mlang@delysid.org>2004-01-06 02:31:57 +0000
commitd088e576b04c3560b21e328a9e54beaf5599a197 (patch)
treee0fe72b3b799b878a8e105f658e784afc5f04eeb
parentbf6313464b724d285076623a64225d0664b8d5ba (diff)
document chess-game-side-to-move
-rw-r--r--chess-game.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/chess-game.el b/chess-game.el
index c66d04b..900710b 100644
--- a/chess-game.el
+++ b/chess-game.el
@@ -197,6 +197,8 @@ This conveys the status of the game at the given index."
1)))
(defsubst chess-game-side-to-move (game &optional index)
+ "Return the color whose move it is in GAME at INDEX (or at the last position
+if INDEX is nil)."
(assert game)
(chess-pos-side-to-move (chess-game-pos game index)))