From 8f0f2044b5445722aff29a0c58461a794564f13a Mon Sep 17 00:00:00 2001 From: Mario Lang Date: Tue, 20 May 2014 03:25:59 +0200 Subject: 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. --- chess-sjeng.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chess-sjeng.el') 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)) -- cgit v1.2.3