summaryrefslogtreecommitdiff
path: root/chess-fen.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-28 16:09:14 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-28 16:09:14 +0000
commit80ab4cec14452a641e741d372037dafda16ee871 (patch)
tree352324dc62ffbd3c9c651a7154a2e88338144641 /chess-fen.el
parent7248e5c89f6d53d3f2a4ecf511167af929241f76 (diff)
*** no comment ***
Diffstat (limited to 'chess-fen.el')
-rw-r--r--chess-fen.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/chess-fen.el b/chess-fen.el
index 91ee683..b428a5f 100644
--- a/chess-fen.el
+++ b/chess-fen.el
@@ -40,6 +40,7 @@
(defun chess-fen-to-pos (fen)
"Convert a FEN-like notation string to a chess position."
+ (assert (stringp fen))
(let ((i 0) (l (length fen))
(rank 0) (file 0) (c ?0)
(position (chess-pos-create t))
@@ -88,6 +89,7 @@
(defun chess-pos-to-fen (position &optional full)
"Convert a chess POSITION to FEN-like notation.
If FULL is non-nil, represent trailing spaces as well."
+ (assert (vectorp position))
(let ((blank 0) (str "") output)
(dotimes (rank 8)
(dotimes (file 8)