summaryrefslogtreecommitdiff
path: root/chess-pos.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-pos.el')
-rw-r--r--chess-pos.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/chess-pos.el b/chess-pos.el
index d24e206..fdc5f6d 100644
--- a/chess-pos.el
+++ b/chess-pos.el
@@ -231,6 +231,9 @@ color will do."
(defsubst chess-pos-to-string (position &optional full)
(chess-pos-to-fen position full))
+(defsubst chess-pos-from-string (fen)
+ (chess-fen-to-pos fen))
+
(defconst chess-pos-piece-values
'((?p . 1)
(?n . 3)