summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chess-game.el2
-rw-r--r--chess.texi3
2 files changed, 4 insertions, 1 deletions
diff --git a/chess-game.el b/chess-game.el
index 98ecc97..44df33d 100644
--- a/chess-game.el
+++ b/chess-game.el
@@ -110,7 +110,7 @@ progress (nil), if it is drawn, resigned, mate, etc."
((or (memq ':resign changes)
(memq ':checkmate changes))
(chess-game-set-tag game "Result"
- (if (chess-pos-side-to-move (chess-game-pos game))
+ (if (chess-game-side-to-move game)
"0-1" "1-0")))
(t (nconc (cdr game)
(list (chess-ply-create
diff --git a/chess.texi b/chess.texi
index c6ab2d6..9bc42b9 100644
--- a/chess.texi
+++ b/chess.texi
@@ -313,6 +313,9 @@ an example of how to make use of the library.
@defun chess-game-seq game
@end defun
+@defun chess-game-side-to-move game
+@end defun
+
@node Game plies, , Game positions, Games
@subsection Game plies