summaryrefslogtreecommitdiff
path: root/chess-game.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-game.el')
-rw-r--r--chess-game.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/chess-game.el b/chess-game.el
index af64241..995e741 100644
--- a/chess-game.el
+++ b/chess-game.el
@@ -166,6 +166,9 @@ matches."
(defsubst chess-game-to-string (game &optional indented)
(chess-game-to-pgn game indented t))
+(defsubst chess-game-from-string (pgn)
+ (chess-pgn-to-game pgn))
+
(defun chess-game-create (&optional position tags)
"Create a new chess game object.