diff options
| -rw-r--r-- | chess-fen.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chess-fen.el b/chess-fen.el index f7cb84b..8117afb 100644 --- a/chess-fen.el +++ b/chess-fen.el @@ -37,6 +37,9 @@ ;; relate to the game, not the position. ;; +(defconst chess-fen-regexp + "^\\([bnrqkpBNRQKP1-8]*/?\\)+ [bw] \\(-\\|[KQkq]+\\) \\(-\\|[1-8]\\)") + (defun chess-fen-to-pos (fen) "Convert a FEN-like notation string to a chess position." (assert (stringp fen)) |
