diff options
| author | Mario Lang <mlang@delysid.org> | 2004-01-28 16:43:04 +0000 |
|---|---|---|
| committer | Mario Lang <mlang@delysid.org> | 2004-01-28 16:43:04 +0000 |
| commit | 62bedefb8df984064cbef4afbe2c9551522e07a5 (patch) | |
| tree | 5468d13d290d03a475f563b2de5fa22a07a737a9 | |
| parent | 855ab7945a116071b7f49bbed26f8bf4f9ddc941 (diff) | |
(chess-search-position): document arguments check-only and no-castling.
| -rw-r--r-- | chess-pos.el | 6 |
1 files changed, 5 insertions, 1 deletions
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))) |
