Mercurial > emacs
comparison lisp/play/blackbox.el @ 14169:83f275dcd93a
Update FSF's address.
author | Erik Naggum <erik@naggum.no> |
---|---|
date | Sun, 14 Jan 1996 07:34:30 +0000 |
parents | 77f1058e7499 |
children | 11218164bc54 |
comparison
equal
deleted
inserted
replaced
14168:3b925cc52931 | 14169:83f275dcd93a |
---|---|
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | 17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 ;; GNU General Public License for more details. | 19 ;; GNU General Public License for more details. |
20 | 20 |
21 ;; You should have received a copy of the GNU General Public License | 21 ;; You should have received a copy of the GNU General Public License |
22 ;; along with GNU Emacs; see the file COPYING. If not, write to | 22 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
23 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
24 ;; Boston, MA 02111-1307, USA. | |
24 | 25 |
25 ;;; Commentary: | 26 ;;; Commentary: |
26 | 27 |
27 ; by F. Thomas May <uw-nsr!uw-warp!tom@beaver.cs.washington.edu> | 28 ;; by F. Thomas May <uw-nsr!uw-warp!tom@beaver.cs.washington.edu> |
28 ; doc comment by Root Boy Jim <rbj@dsys.icst.nbs.gov>, 27 Apr 89 | 29 ;; doc comment by Root Boy Jim <rbj@dsys.icst.nbs.gov>, 27 Apr 89 |
29 ; interface improvements by ESR, Dec 5 1991. | 30 ;; interface improvements by ESR, Dec 5 1991. |
30 | 31 |
31 ; The object of the game is to find four hidden balls by shooting rays | 32 ;; The object of the game is to find four hidden balls by shooting rays |
32 ; into the black box. There are four possibilities: 1) the ray will | 33 ;; into the black box. There are four possibilities: 1) the ray will |
33 ; pass thru the box undisturbed, 2) it will hit a ball and be absorbed, | 34 ;; pass thru the box undisturbed, 2) it will hit a ball and be absorbed, |
34 ; 3) it will be deflected and exit the box, or 4) be deflected immediately, | 35 ;; 3) it will be deflected and exit the box, or 4) be deflected immediately, |
35 ; not even being allowed entry into the box. | 36 ;; not even being allowed entry into the box. |
36 ; | 37 ;; |
37 ; The strange part is the method of deflection. It seems that rays will | 38 ;; The strange part is the method of deflection. It seems that rays will |
38 ; not pass next to a ball, and change direction at right angles to avoid it. | 39 ;; not pass next to a ball, and change direction at right angles to avoid it. |
39 ; | 40 ;; |
40 ; R 3 | 41 ;; R 3 |
41 ; 1 - - - - - - - - 1 | 42 ;; 1 - - - - - - - - 1 |
42 ; - - - - - - - - | 43 ;; - - - - - - - - |
43 ; - O - - - - - - 3 | 44 ;; - O - - - - - - 3 |
44 ; 2 - - - - O - O - | 45 ;; 2 - - - - O - O - |
45 ; 4 - - - - - - - - | 46 ;; 4 - - - - - - - - |
46 ; 5 - - - - - - - - 5 | 47 ;; 5 - - - - - - - - 5 |
47 ; - - - - - - - - R | 48 ;; - - - - - - - - R |
48 ; H - - - - - - - O | 49 ;; H - - - - - - - O |
49 ; 2 H 4 H | 50 ;; 2 H 4 H |
50 ; | 51 ;; |
51 ; Rays which enter and exit are numbered. You can see that rays 1 & 5 pass | 52 ;; Rays which enter and exit are numbered. You can see that rays 1 & 5 pass |
52 ; thru the box undisturbed. Ray 2 is deflected by the northwesternmost | 53 ;; thru the box undisturbed. Ray 2 is deflected by the northwesternmost |
53 ; ball. Likewise rays 3 and 4. Rays which hit balls and are absorbed are | 54 ;; ball. Likewise rays 3 and 4. Rays which hit balls and are absorbed are |
54 ; marked with H. The bottom of the left and the right of the bottom hit | 55 ;; marked with H. The bottom of the left and the right of the bottom hit |
55 ; the southeastern ball directly. Rays may also hit balls after being | 56 ;; the southeastern ball directly. Rays may also hit balls after being |
56 ; reflected. Consider the H on the bottom next to the 4. It bounces off | 57 ;; reflected. Consider the H on the bottom next to the 4. It bounces off |
57 ; the NW-ern most ball and hits the central ball. A ray shot from above | 58 ;; the NW-ern most ball and hits the central ball. A ray shot from above |
58 ; the right side 5 would hit the SE-ern most ball. The R beneath the 5 | 59 ;; the right side 5 would hit the SE-ern most ball. The R beneath the 5 |
59 ; is because the ball is returned instantly. It is not allowed into | 60 ;; is because the ball is returned instantly. It is not allowed into |
60 ; the box if it would reflect immediately. The R on the top is a more | 61 ;; the box if it would reflect immediately. The R on the top is a more |
61 ; leisurely return. Both central balls would tend to deflect it east | 62 ;; leisurely return. Both central balls would tend to deflect it east |
62 ; or west, but it cannot go either way, so it just retreats. | 63 ;; or west, but it cannot go either way, so it just retreats. |
63 ; | 64 ;; |
64 ; At the end of the game, if you've placed guesses for as many balls as | 65 ;; At the end of the game, if you've placed guesses for as many balls as |
65 ; there are in the box, the true board position will be revealed. Each | 66 ;; there are in the box, the true board position will be revealed. Each |
66 ; `x' is an incorrect guess of yours; `o' is the true location of a ball. | 67 ;; `x' is an incorrect guess of yours; `o' is the true location of a ball. |
67 | 68 |
68 ;;; Code: | 69 ;;; Code: |
69 | 70 |
70 (defvar blackbox-mode-map nil "") | 71 (defvar blackbox-mode-map nil "") |
71 | 72 |