summaryrefslogtreecommitdiff
path: root/chess-pos.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-10 23:16:18 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-10 23:16:18 +0000
commit5fbbfaf36f1dc7da3c7539568fe473bbf079c513 (patch)
tree7c98cb4735fd68f85156a2f796c10b078231348d /chess-pos.el
parente9f978733b11a619e0bf865653865ffaa07076b5 (diff)
*** no comment ***
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)