[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/play/blackbox.el
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/play/blackbox.el |
Date: |
Tue, 04 Feb 2003 08:20:42 -0500 |
Index: emacs/lisp/play/blackbox.el
diff -c emacs/lisp/play/blackbox.el:1.13 emacs/lisp/play/blackbox.el:1.14
*** emacs/lisp/play/blackbox.el:1.13 Fri Sep 20 14:33:35 2002
--- emacs/lisp/play/blackbox.el Tue Feb 4 08:20:41 2003
***************
*** 34,54 ****
;; pass thru the box undisturbed, 2) it will hit a ball and be absorbed,
;; 3) it will be deflected and exit the box, or 4) be deflected immediately,
;; not even being allowed entry into the box.
! ;;
;; The strange part is the method of deflection. It seems that rays will
;; not pass next to a ball, and change direction at right angles to avoid it.
! ;;
! ;; R 3
! ;; 1 - - - - - - - - 1
! ;; - - - - - - - -
! ;; - O - - - - - - 3
! ;; 2 - - - - O - O -
! ;; 4 - - - - - - - -
! ;; 5 - - - - - - - - 5
! ;; - - - - - - - - R
! ;; H - - - - - - - O
! ;; 2 H 4 H
! ;;
;; Rays which enter and exit are numbered. You can see that rays 1 & 5 pass
;; thru the box undisturbed. Ray 2 is deflected by the northwesternmost
;; ball. Likewise rays 3 and 4. Rays which hit balls and are absorbed are
--- 34,54 ----
;; pass thru the box undisturbed, 2) it will hit a ball and be absorbed,
;; 3) it will be deflected and exit the box, or 4) be deflected immediately,
;; not even being allowed entry into the box.
! ;;
;; The strange part is the method of deflection. It seems that rays will
;; not pass next to a ball, and change direction at right angles to avoid it.
! ;;
! ;; R 3
! ;; 1 - - - - - - - - 1
! ;; - - - - - - - -
! ;; - O - - - - - - 3
! ;; 2 - - - - O - O -
! ;; 4 - - - - - - - -
! ;; 5 - - - - - - - - 5
! ;; - - - - - - - - R
! ;; H - - - - - - - O
! ;; 2 H 4 H
! ;;
;; Rays which enter and exit are numbered. You can see that rays 1 & 5 pass
;; thru the box undisturbed. Ray 2 is deflected by the northwesternmost
;; ball. Likewise rays 3 and 4. Rays which hit balls and are absorbed are
***************
*** 194,214 ****
Note carefully the relative positions of the ball and the ninety
degree deflection it causes.
! 1
! - * - - - - - - - - - - - - - - - - - - - - - -
! - * - - - - - - - - - - - - - - - - - - - - - -
! 1 * * - - - - - - - - - - - - - - - O - - - - O -
- - O - - - - - - - O - - - - - - - * * * * - -
- - - - - - - - - - - * * * * * 2 3 * * * - - * - -
! - - - - - - - - - - - * - - - - - - - O - * - -
! - - - - - - - - - - - * - - - - - - - - * * - -
! - - - - - - - - - - - * - - - - - - - - * - O -
2 3
As mentioned above, a reflection occurs when a ray emerges from the same point
it was sent in. This can happen in several ways:
!
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - O - - - - - O - O - - - - - - - - - - -
R * * * * - - - - - - - * - - - - O - - - - - - -
--- 194,214 ----
Note carefully the relative positions of the ball and the ninety
degree deflection it causes.
! 1
! - * - - - - - - - - - - - - - - - - - - - - - -
! - * - - - - - - - - - - - - - - - - - - - - - -
! 1 * * - - - - - - - - - - - - - - - O - - - - O -
- - O - - - - - - - O - - - - - - - * * * * - -
- - - - - - - - - - - * * * * * 2 3 * * * - - * - -
! - - - - - - - - - - - * - - - - - - - O - * - -
! - - - - - - - - - - - * - - - - - - - - * * - -
! - - - - - - - - - - - * - - - - - - - - * - O -
2 3
As mentioned above, a reflection occurs when a ray emerges from the same point
it was sent in. This can happen in several ways:
!
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - O - - - - - O - O - - - - - - - - - - -
R * * * * - - - - - - - * - - - - O - - - - - - -
***************
*** 426,432 ****
(delete-char (length c))
(insert c)
(backward-char 1)))
!
(provide 'blackbox)
;;; blackbox.el ends here
--- 426,432 ----
(delete-char (length c))
(insert c)
(backward-char 1)))
!
(provide 'blackbox)
;;; blackbox.el ends here
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/play/blackbox.el,
Juanma Barranquero <=