Conway's Game of Life/ALGOL 68: Difference between revisions
Content added Content deleted
m (fix wp links: The first Life program was written for the PDP-7 by M. J. T. Guy and S. R. Bourne in 1970.) |
m (Fixed syntax highlighting.) |
||
Line 2: | Line 2: | ||
The first Life program was written for the [[wp:PDP-7|PDP-7]] by [[wp:Mike Guy|Mike. J. T. Guy]] and [[wp:Stephen R. Bourne|Stephen Bourne]] in 1970. It was written in [[ALGOL 68]]. c.f. [http://ddi.cs.uni-potsdam.de/HyFISCH/Produzieren/lis_projekt/proj_gamelife/ConwayScientificAmerican.htm Scientific American 223 (October 1970): 120-123] |
The first Life program was written for the [[wp:PDP-7|PDP-7]] by [[wp:Mike Guy|Mike. J. T. Guy]] and [[wp:Stephen R. Bourne|Stephen Bourne]] in 1970. It was written in [[ALGOL 68]]. c.f. [http://ddi.cs.uni-potsdam.de/HyFISCH/Produzieren/lis_projekt/proj_gamelife/ConwayScientificAmerican.htm Scientific American 223 (October 1970): 120-123] |
||
< |
<syntaxhighlight lang="algol68">MODE UNIVERSE = [upb OF class universe, upb OF class universe]BOOL; |
||
STRUCT( |
STRUCT( |
||
Line 120: | Line 120: | ||
print((repr OF class universe)(conways universe)); |
print((repr OF class universe)(conways universe)); |
||
(next OF class universe)(conways universe) |
(next OF class universe)(conways universe) |
||
OD</ |
OD</syntaxhighlight> |
||
Output after 564 iterations: |
Output after 564 iterations: |
||
<pre> |
<pre> |