summaryrefslogtreecommitdiff
path: root/lisp/play/5x5.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2007-02-15 10:58:11 +0000
committerJuanma Barranquero <lekktu@gmail.com>2007-02-15 10:58:11 +0000
commit849aa553875fab0657459a07a477379882b81b7f (patch)
tree5c26f44f6d30eddd1b27d9df66ff2f37906dbfb7 /lisp/play/5x5.el
parent1f84b630b092901dde34f276f077f28eda91bdbd (diff)
downloademacs-849aa553875fab0657459a07a477379882b81b7f.tar.gz
(5x5-crack-xor-mutate): Doc fix.
(5x5-draw-grid-end, 5x5-make-xor-with-mutation, 5x5-mode, 5x5-crack, 5x5-play-solution, 5x5-y-or-n-p): Fix typos in docstrings.
Diffstat (limited to 'lisp/play/5x5.el')
-rw-r--r--lisp/play/5x5.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/play/5x5.el b/lisp/play/5x5.el
index e3118042220..5dad84fadc5 100644
--- a/lisp/play/5x5.el
+++ b/lisp/play/5x5.el
@@ -170,7 +170,7 @@
(put '5x5-mode 'mode-class 'special)
(defun 5x5-mode ()
- "A mode for playing `5x5'
+ "A mode for playing `5x5'.
The key bindings for 5x5-mode are:
@@ -282,7 +282,7 @@ Quit current game \\[5x5-quit-game]"
(loop for y from 0 to (1- 5x5-grid-size) sum (5x5-row-value (aref grid y))))
(defun 5x5-draw-grid-end ()
- "Draw the top/bottom of the grid"
+ "Draw the top/bottom of the grid."
(insert "+")
(loop for x from 0 to (1- 5x5-grid-size) do
(insert "-" (make-string 5x5-x-scale ?-)))
@@ -347,7 +347,7 @@ Quit current game \\[5x5-quit-game]"
;;;###autoload
(defun 5x5-crack-xor-mutate ()
- "Attempt to crack 5x5 by xor the current and best solution.
+ "Attempt to crack 5x5 by xoring the current and best solution.
Mutate the result."
(interactive)
(5x5-crack #'5x5-make-xor-with-mutation))
@@ -358,7 +358,7 @@ Mutate the result."
5x5-crack takes the argument BREEDER which should be a function that takes
two parameters, the first will be a grid vector array that is the current
-solution and the second will be the best solution so far. The function
+solution and the second will be the best solution so far. The function
should return a grid vector array that is the new solution."
(interactive "aBreeder function: ")
@@ -393,7 +393,7 @@ should return a grid vector array that is the new solution."
(5x5-mutate-solution best))
(defun 5x5-make-xor-with-mutation (current best)
- "xor current and best solution then mutate the result."
+ "Xor current and best solution then mutate the result."
(let ((xored (5x5-make-new-grid)))
(loop for y from 0 to (1- 5x5-grid-size) do
(loop for x from 0 to (1- 5x5-grid-size) do
@@ -412,8 +412,8 @@ should return a grid vector array that is the new solution."
solution)
(defun 5x5-play-solution (solution best)
- "Play a solution on an empty grid. This destroys the current game in
-progress because it is an animated attempt."
+ "Play a solution on an empty grid. This destroys the current game
+in progress because it is an animated attempt."
(5x5-new-game)
(let ((inhibit-quit t))
(loop for y from 0 to (1- 5x5-grid-size) do
@@ -514,7 +514,7 @@ progress because it is an animated attempt."
(and (or x y) (not (and x y))))
(defun 5x5-y-or-n-p (prompt)
- "5x5 wrapper for y-or-n-p which respects the 5x5-hassle-me setting."
+ "5x5 wrapper for `y-or-n-p' which respects the `5x5-hassle-me' setting."
(if 5x5-hassle-me
(y-or-n-p prompt)
t))