diff options
| author | Juanma Barranquero | 2006-11-24 11:10:51 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2006-11-24 11:10:51 +0000 |
| commit | 219a77002cd208c31fc53f23ce2cecc5732841da (patch) | |
| tree | 2681b19c443f4c6521864d0fd617f4fc5f1bda6b | |
| parent | cfa61b8594fbaa4503846521d9db4da4600b35f9 (diff) | |
| download | emacs-219a77002cd208c31fc53f23ce2cecc5732841da.tar.gz emacs-219a77002cd208c31fc53f23ce2cecc5732841da.zip | |
(gomoku-terminate-game, gomoku-human-takes-back, gomoku-prompt-for-move,
gomoku-human-plays, gomoku-offer-a-draw): Fix typos in output messages.
(gomoku-vector-length, gomoku-init-board): Fix typos in docstrings.
| -rw-r--r-- | lisp/play/gomoku.el | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/play/gomoku.el b/lisp/play/gomoku.el index 8b23cbb59d4..2df8a9abaad 100644 --- a/lisp/play/gomoku.el +++ b/lisp/play/gomoku.el | |||
| @@ -230,7 +230,7 @@ is non-nil." | |||
| 230 | "Vector recording the actual state of the Gomoku board.") | 230 | "Vector recording the actual state of the Gomoku board.") |
| 231 | 231 | ||
| 232 | (defvar gomoku-vector-length nil | 232 | (defvar gomoku-vector-length nil |
| 233 | "Length of gomoku-board vector.") | 233 | "Length of `gomoku-board' vector.") |
| 234 | 234 | ||
| 235 | (defvar gomoku-draw-limit nil | 235 | (defvar gomoku-draw-limit nil |
| 236 | ;; This is usually set to 70% of the number of squares. | 236 | ;; This is usually set to 70% of the number of squares. |
| @@ -250,7 +250,7 @@ is non-nil." | |||
| 250 | (/ index (1+ gomoku-board-width))) | 250 | (/ index (1+ gomoku-board-width))) |
| 251 | 251 | ||
| 252 | (defun gomoku-init-board () | 252 | (defun gomoku-init-board () |
| 253 | "Create the gomoku-board vector and fill it with initial values." | 253 | "Create the `gomoku-board' vector and fill it with initial values." |
| 254 | (setq gomoku-board (make-vector gomoku-vector-length 0)) | 254 | (setq gomoku-board (make-vector gomoku-vector-length 0)) |
| 255 | ;; Every square is 0 (i.e. empty) except padding squares: | 255 | ;; Every square is 0 (i.e. empty) except padding squares: |
| 256 | (let ((i 0) (ii (1- gomoku-vector-length))) | 256 | (let ((i 0) (ii (1- gomoku-vector-length))) |
| @@ -671,11 +671,11 @@ that DVAL has been added on SQUARE." | |||
| 671 | (cond ((< gomoku-number-of-moves 20) | 671 | (cond ((< gomoku-number-of-moves 20) |
| 672 | "This was a REALLY QUICK win.") | 672 | "This was a REALLY QUICK win.") |
| 673 | (gomoku-human-refused-draw | 673 | (gomoku-human-refused-draw |
| 674 | "I won... Too bad you refused my offer of a draw!") | 674 | "I won... Too bad you refused my offer of a draw!") |
| 675 | (gomoku-human-took-back | 675 | (gomoku-human-took-back |
| 676 | "I won... Taking moves back will not help you!") | 676 | "I won... Taking moves back will not help you!") |
| 677 | ((not gomoku-emacs-played-first) | 677 | ((not gomoku-emacs-played-first) |
| 678 | "I won... Playing first did not help you much!") | 678 | "I won... Playing first did not help you much!") |
| 679 | ((and (zerop gomoku-number-of-human-wins) | 679 | ((and (zerop gomoku-number-of-human-wins) |
| 680 | (zerop gomoku-number-of-draws) | 680 | (zerop gomoku-number-of-draws) |
| 681 | (> gomoku-number-of-emacs-wins 1)) | 681 | (> gomoku-number-of-emacs-wins 1)) |
| @@ -875,9 +875,9 @@ If the game is finished, this command requests for another game." | |||
| 875 | (let (square score) | 875 | (let (square score) |
| 876 | (setq square (gomoku-point-square)) | 876 | (setq square (gomoku-point-square)) |
| 877 | (cond ((null square) | 877 | (cond ((null square) |
| 878 | (error "Your point is not on a square. Retry!")) | 878 | (error "Your point is not on a square. Retry!")) |
| 879 | ((not (zerop (aref gomoku-board square))) | 879 | ((not (zerop (aref gomoku-board square))) |
| 880 | (error "Your point is not on a free square. Retry!")) | 880 | (error "Your point is not on a free square. Retry!")) |
| 881 | (t | 881 | (t |
| 882 | (setq score (aref gomoku-score-table square)) | 882 | (setq score (aref gomoku-score-table square)) |
| 883 | (gomoku-play-move square 1) | 883 | (gomoku-play-move square 1) |
| @@ -902,7 +902,7 @@ If the game is finished, this command requests for another game." | |||
| 902 | (sit-for 4) | 902 | (sit-for 4) |
| 903 | (gomoku-prompt-for-other-game)) | 903 | (gomoku-prompt-for-other-game)) |
| 904 | ((zerop gomoku-number-of-human-moves) | 904 | ((zerop gomoku-number-of-human-moves) |
| 905 | (message "You have not played yet... Your move?")) | 905 | (message "You have not played yet... Your move?")) |
| 906 | (t | 906 | (t |
| 907 | (message "One moment, please...") | 907 | (message "One moment, please...") |
| 908 | ;; It is possible for the user to let Emacs play several consecutive | 908 | ;; It is possible for the user to let Emacs play several consecutive |
| @@ -937,7 +937,7 @@ If the game is finished, this command requests for another game." | |||
| 937 | (defun gomoku-prompt-for-move () | 937 | (defun gomoku-prompt-for-move () |
| 938 | "Display a message asking for Human's move." | 938 | "Display a message asking for Human's move." |
| 939 | (message (if (zerop gomoku-number-of-human-moves) | 939 | (message (if (zerop gomoku-number-of-human-moves) |
| 940 | "Your move? (move to a free square and hit X, RET ...)" | 940 | "Your move? (Move to a free square and hit X, RET ...)" |
| 941 | "Your move?")) | 941 | "Your move?")) |
| 942 | ;; This may seem silly, but if one omits the following line (or a similar | 942 | ;; This may seem silly, but if one omits the following line (or a similar |
| 943 | ;; one), the cursor may very well go to some place where POINT is not. | 943 | ;; one), the cursor may very well go to some place where POINT is not. |
| @@ -951,7 +951,7 @@ If the game is finished, this command requests for another game." | |||
| 951 | 951 | ||
| 952 | (defun gomoku-offer-a-draw () | 952 | (defun gomoku-offer-a-draw () |
| 953 | "Offer a draw and return t if Human accepted it." | 953 | "Offer a draw and return t if Human accepted it." |
| 954 | (or (y-or-n-p "I offer you a draw. Do you accept it? ") | 954 | (or (y-or-n-p "I offer you a draw. Do you accept it? ") |
| 955 | (not (setq gomoku-human-refused-draw t)))) | 955 | (not (setq gomoku-human-refused-draw t)))) |
| 956 | 956 | ||
| 957 | ;;; | 957 | ;;; |