Conway's Game of Life/ALGOL 68: Difference between revisions

m
Fixed syntax highlighting.
(moved from Conway's Game of Life)
 
m (Fixed syntax highlighting.)
 
(One intermediate revision by one other user not shown)
Line 1:
{{collection|Conway's Game of Life}}
 
The first Life program was written for the [[wp:PDP-7|PDP-7]] by [[wp:Mike Guy|MMike. J. T. Guy]] and [[wp:Stephen R. Bourne|S. R.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]
<langsyntaxhighlight lang="algol68">MODE UNIVERSE = [upb OF class universe, upb OF class universe]BOOL;
 
STRUCT(
Line 120:
print((repr OF class universe)(conways universe));
(next OF class universe)(conways universe)
OD</langsyntaxhighlight>
Output after 564 iterations:
<pre>
9,476

edits