summaryrefslogtreecommitdiff
path: root/chess-sjeng.el
diff options
context:
space:
mode:
authorMario Lang <mlang@delysid.org>2014-05-20 03:25:59 +0200
committerMario Lang <mlang@delysid.org>2014-05-20 03:25:59 +0200
commit8f0f2044b5445722aff29a0c58461a794564f13a (patch)
tree0b2a8af14062b02a16e439125c8738cbcea67765 /chess-sjeng.el
parent940fce2ade6a25bf4462330f2feea8ef5a39906f (diff)
Eliminate the circular dependency between chess-pos and chess-fen.
We remove functions chess-pos-to-string and chess-pos-from-string which are really just aliases for chess-fen-to-pos and chess-pos-to-fen.
Diffstat (limited to 'chess-sjeng.el')
-rw-r--r--chess-sjeng.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/chess-sjeng.el b/chess-sjeng.el
index 7dcabf7..88fec05 100644
--- a/chess-sjeng.el
+++ b/chess-sjeng.el
@@ -1,4 +1,4 @@
-;;; chess-sjeng.el --- Play chess against sjeng!
+;;; chess-sjeng.el --- Play against sjeng!
;; Copyright (C) 2004 Free Software Foundation, Inc.
@@ -21,6 +21,7 @@
;;; Code:
(require 'chess-common)
+(require 'chess-fen)
(defgroup chess-sjeng nil
"The publically available chess engine 'sjeng'."
@@ -73,7 +74,7 @@
((eq event 'setup-pos)
(chess-engine-send nil (format "setboard %s\n"
- (chess-pos-to-string (car args)))))
+ (chess-pos-to-fen (car args)))))
((eq event 'move)
(when (= 1 (chess-game-index game))