comparison lisp/play/life.el @ 807:4f28bd14272c

*** empty log message ***
author Eric S. Raymond <esr@snark.thyrsus.com>
date Thu, 16 Jul 1992 21:47:34 +0000
parents 505130d1ddf8
children e694e0879463
comparison
equal deleted inserted replaced
806:d42e1151eed8 807:4f28bd14272c
1 ;;; life.el --- John Horton Conway's `Life' game for GNU Emacs 1 ;;; life.el --- John Horton Conway's `Life' game for GNU Emacs
2 2
3 ;; Author: Kyle Jones <talos!kjones@uunet.uu.net>
4 ;; Last-Modified: 16 Mar 1992
5
3 ;; Copyright (C) 1988 Free Software Foundation, Inc. 6 ;; Copyright (C) 1988 Free Software Foundation, Inc.
4 ;; Contributed by Kyle Jones, talos!kjones@uunet.uu.net
5 7
6 ;; This file is part of GNU Emacs. 8 ;; This file is part of GNU Emacs.
7 9
8 ;; GNU Emacs is free software; you can redistribute it and/or modify 10 ;; GNU Emacs is free software; you can redistribute it and/or modify
9 ;; it under the terms of the GNU General Public License as published by 11 ;; it under the terms of the GNU General Public License as published by
10 ;; the Free Software Foundation; either version 1, or (at your option) 12 ;; the Free Software Foundation; either version 2, or (at your option)
11 ;; any later version. 13 ;; any later version.
12 14
13 ;; GNU Emacs is distributed in the hope that it will be useful, 15 ;; GNU Emacs is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;; GNU General Public License for more details. 18 ;; GNU General Public License for more details.
17 19
18 ;; You should have received a copy of the GNU General Public License 20 ;; You should have received a copy of the GNU General Public License
19 ;; along with GNU Emacs; see the file COPYING. If not, write to 21 ;; along with GNU Emacs; see the file COPYING. If not, write to
20 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 22 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
23
24 ;;; Code:
21 25
22 (defconst life-patterns 26 (defconst life-patterns
23 [("@@@" " @@" "@@@") 27 [("@@@" " @@" "@@@")
24 ("@@@ @@@" "@@ @@ " "@@@ @@@") 28 ("@@@ @@@" "@@ @@ " "@@@ @@@")
25 ("@@@ @@@" "@@ @@" "@@@ @@@") 29 ("@@@ @@@" "@@ @@" "@@@ @@@")