summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Lang <mlang@delysid.org>2014-04-23 15:48:03 +0200
committerMario Lang <mlang@delysid.org>2014-04-23 15:48:03 +0200
commit52e578723999fe02816bb8ccff6fec38953636e9 (patch)
tree24b70f21b974600a7c43e1be3bd3dbac28e7f510
parent58f648679ef0c78cdf704fd02ac481d6f6720e06 (diff)
docstring fixes.
-rw-r--r--chess-ai.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/chess-ai.el b/chess-ai.el
index dcfadbd..5398df4 100644
--- a/chess-ai.el
+++ b/chess-ai.el
@@ -42,7 +42,7 @@
(defgroup chess-ai ()
"A simple chess engine written in Emacs Lisp.
-This module does not allow for configuring search time used to calculate
+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)
@@ -50,7 +50,7 @@ reply moves. You can only specify the search depth (see `chess-ai-depth')."
"The default search depth used to prune the search tree.
If `chess-ai-quiescence' is non-nil, quiescence search will be performed after
-the ply depth limit has been reached."
+this ply depth limit has been reached."
:group 'chess-ai
:type 'integer)
@@ -301,7 +301,8 @@ and `car' is the score of that move. If there is no legal move from POSITION
(cons lower-bound best-ply)))))))
(defun chess-ai-best-move (position &optional depth eval-fn)
- "Find the best move for POSITION."
+ "Find the best move for POSITION.
+DEPTH defaults to the value of `chess-ai-depth'."
(cdr (chess-ai-eval position (or depth chess-ai-depth)
(1+ most-negative-fixnum) most-positive-fixnum
(or eval-fn #'chess-ai-eval-static))))