* chess-{ai,crafty,glaurung,gnuchess,sjeng,stockfish}.el: Add custom-manual links to customisation groups.
This module does not allow to configure search time used to calculate
reply moves. You can only specify the search depth (see `chess-ai-depth')."
- :group 'chess)
+ :group 'chess
+ :link '(custom-manual "(chess)AI"))
(defcustom chess-ai-depth 2
"The default search depth used to prune the search tree.
(setq chess-engine-opponent-name "Emacs AI")
t)
- ((eq event 'new)
- (chess-engine-set-position nil))
+ ((eq event 'new) (chess-engine-set-position nil))
((eq event 'move)
(when (= 1 (chess-game-index game))
(funcall chess-engine-response-handler 'move
(or (and (bufferp chess-polyglot-book)
(buffer-live-p chess-polyglot-book)
- (chess-polyglot-book-ply chess-polyglot-book position))
+ (chess-polyglot-book-ply chess-polyglot-book
+ position))
(chess-ai-best-move position))))))
- (t
- (apply 'chess-common-handler game event args)))))
+ (t (apply 'chess-common-handler game event args)))))
(provide 'chess-ai)
;;; chess-ai.el ends here
(defgroup chess-crafty nil
"The publically available chess engine 'crafty'."
- :group 'chess-engine)
+ :group 'chess-engine
+ :link '(custom-manual "(chess)Crafty"))
(defcustom chess-crafty-path (or (executable-find "crafty")
(executable-find "wcrafty"))
(defgroup chess-glaurung nil
"The publically available chess engine 'glaurung'."
:group 'chess-engine
+ :link '(custom-manual "(chess)Glaurung")
:link '(url-link "http://www.glaurungchess.com/"))
(defcustom chess-glaurung-path (executable-find "glaurung")
(defgroup chess-gnuchess nil
"The publically available chess engine 'gnuchess'."
- :group 'chess-engine)
+ :group 'chess-engine
+ :link '(custom-manual "(chess)GNU Chess")
+ :link '(url-link "http://www.gnu.org/software/chess/"))
(defcustom chess-gnuchess-path (let ((exec-path (cons "/usr/games" exec-path)))
(executable-find "gnuchess"))
(defgroup chess-sjeng nil
"The publically available chess engine 'sjeng'."
:group 'chess-engine
+ :link '(custom-manual "(chess)Sjeng")
:link '(url-link "http://sjeng.sourceforge.net"))
(defcustom chess-sjeng-path (executable-find "sjeng")
(defgroup chess-stockfish nil
"The publically available chess engine 'stockfish'."
:group 'chess-engine
+ :link '(custom-manual "(chess)Stockfish")
:link '(url-link "http://www.stockfishchess.com"))
(defcustom chess-stockfish-path (executable-find "stockfish")
-- User Option: chess-ai-depth
Defines the default search depth for this engine.
+ -- User Option: chess-ai-quiescence-depth
+ Defines the number of plies to search for a quiet position. This
+ is in addition to 'chess-ai-depth'.
+
+ If you'd like to employ the search and evaluation functions provided
+by this module programmatically, the following function is the top-level
+entry point.
+
+ -- Function: chess-ai-best-move position &optional depth eval-fn
+ Find the supposedly best move (ply) for POSITION. DEPTH defaults
+ to the value of 'chess-ai-depth'.
+
\1f
File: chess.info, Node: Crafty, Next: Fruit, Prev: AI, Up: Engines
\0\b[index\0\b]
* Menu:
+* chess-ai-best-move: AI. (line 24)
* chess-ai-depth: AI. (line 13)
+* chess-ai-quiescence-depth: AI. (line 16)
* chess-algebraic-regexp: Algebraic notation. (line 33)
* chess-algebraic-to-ply: Algebraic notation. (line 17)
* chess-coord-to-index: Position coordinates. (line 22)
Node: Engines\7f47617
Node: Common functions\7f48142
Node: AI\7f49178
-Node: Crafty\7f49653
-Node: Fruit\7f50384
-Node: Glaurung\7f51230
-Node: GNU Chess\7f51820
-Node: Phalanx\7f52656
-Node: Sjeng\7f53238
-Node: Stockfish\7f53927
-Node: Internet Chess Servers\7f54692
-Node: Connecting to a server\7f55779
-Node: Seeking an opponent for a new game\7f56455
-Node: The sought game display\7f56907
-Node: Concept Index\7f57885
-Node: Function and Variable Index\7f58128
-Node: Key Index\7f70817
+Node: Crafty\7f50145
+Node: Fruit\7f50876
+Node: Glaurung\7f51722
+Node: GNU Chess\7f52312
+Node: Phalanx\7f53148
+Node: Sjeng\7f53730
+Node: Stockfish\7f54419
+Node: Internet Chess Servers\7f55184
+Node: Connecting to a server\7f56271
+Node: Seeking an opponent for a new game\7f56947
+Node: The sought game display\7f57399
+Node: Concept Index\7f58377
+Node: Function and Variable Index\7f58620
+Node: Key Index\7f71455
\1f
End Tag Table
Defines the default search depth for this engine.
@end defopt
+@defopt chess-ai-quiescence-depth
+Defines the number of plies to search for a quiet position.
+This is in addition to `chess-ai-depth'.
+@end defopt
+
+If you'd like to employ the search and evaluation functions provided
+by this module programmatically, the following function is the top-level
+entry point.
+
+@defun chess-ai-best-move position &optional depth eval-fn
+Find the supposedly best move (ply) for @var{position}.
+@var{depth} defaults to the value of `chess-ai-depth'.
+@end defun
+
@node Crafty, Fruit, AI, Engines
@section Crafty