summaryrefslogtreecommitdiff
path: root/chess-fen.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-fen.el')
-rw-r--r--chess-fen.el32
1 files changed, 26 insertions, 6 deletions
diff --git a/chess-fen.el b/chess-fen.el
index 00eacd6..568e461 100644
--- a/chess-fen.el
+++ b/chess-fen.el
@@ -1,7 +1,26 @@
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;;
-;; Convert a chess position to/from FEN notation
-;;
+;;; chess-fen.el --- Convert a chess position to/from FEN notation
+
+;; Copyright (C) 2002, 2004, 2014 Free Software Foundation, Inc.
+
+;; Author: John Wiegley <johnw@gnu.org>
+;; Maintainer: Mario Lang <mlang@delysid.org>
+;; Keywords: games
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
;; FEN notation encodes a chess position using a simple string. The
;; format is:
;;
@@ -35,9 +54,10 @@
;;
;; It may also have the current game sequence appended, but this
;; relate to the game, not the position.
-;;
-(eval-when-compile (require 'cl))
+;;; Code:
+
+(eval-when-compile (require 'cl-lib))
(defconst chess-fen-regexp
"^\\([bnrqkpBNRQKP1-8]*/?\\)+ [bw] \\(-\\|[KQkq]+\\) \\(-\\|[1-8]\\)")