summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)))