Function: life
life is an autoloaded, interactive and byte-compiled function defined
in life.el.gz.
Signature
(life &optional STEP-TIME)
Documentation
Run Conway's Life simulation.
The starting pattern is randomly selected from life-patterns.
Prefix arg is the number of tenths of a second to sleep between
generations (the default is life-step-time).
When called from Lisp, optional argument STEP-TIME is the time to sleep in seconds.
Probably introduced at or before Emacs version 18.52.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/play/life.el.gz
;;;###autoload
(defun life (&optional step-time)
"Run Conway's Life simulation.
The starting pattern is randomly selected from `life-patterns'.
Prefix arg is the number of tenths of a second to sleep between
generations (the default is `life-step-time').
When called from Lisp, optional argument STEP-TIME is the time to
sleep in seconds."
(interactive "P")
(setq step-time (or (and step-time (/ (if (consp step-time)
(car step-time)
step-time) 10.0))
life-step-time))
(life-setup)
(catch 'life-exit
(while t
(life-display-generation step-time)
(life--tick))))