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

m
Fixed syntax highlighting.
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:
 
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]
<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