From 62bedefb8df984064cbef4afbe2c9551522e07a5 Mon Sep 17 00:00:00 2001 From: Mario Lang Date: Wed, 28 Jan 2004 16:43:04 +0000 Subject: (chess-search-position): document arguments check-only and no-castling. --- chess-pos.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'chess-pos.el') diff --git a/chess-pos.el b/chess-pos.el index ccfb0fb..d92fdf7 100644 --- a/chess-pos.el +++ b/chess-pos.el @@ -660,7 +660,11 @@ color will be considered (t for white, nil for black). Otherwise, the case of the PIECE determines color. The return value is a list of candidates, which means a list of -indices which indicate where a piece may have moved from." +indices which indicate where a piece may have moved from. + +If CHECK-ONLY is non-nil and PIECE is either t or nil, only consider +pieces which can give check (not the opponents king). +If NO-CASTLING is non-nil, do not consider castling moves." (assert (vectorp position)) (assert (and (>= target 0) (< target 64))) (assert (memq piece '(t nil ?K ?Q ?N ?B ?R ?P ?k ?q ?n ?b ?r ?p))) -- cgit v1.2.3