Main Page: Difference between revisions

Jump to navigation Jump to search
239 bytes added ,  12:30, 19 September 2019
Miraheze>RikedyP
Miraheze>Adám Brudzewsky
Line 35: Line 35:


=== Conway's "Game of Life" ===
=== Conway's "Game of Life" ===
[[John Scholes]] is famous for the following implementation of Conway's "Game of Life":
<pre class=apl>
<pre class=apl>
{↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵}
      ⎕←world←2 2 2 2⊤0 12 5 2 4 1
0 1 0 0 0 0
0 1 1 0 1 0
0 0 0 1 0 0
0 0 1 0 0 1
      {↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵} world
1 1 0 1 0 0
0 1 1 1 0 0
0 1 0 1 1 0
0 0 1 0 0 0
</pre>
</pre>
{{Works in|[[Dyalog APL]], [[dzaima/APL]], [[GNU APL]], [[NARS2000]], [[ngn/apl]]}}
{{Works in|[[Dyalog APL]], [[dzaima/APL]], [[GNU APL]], [[NARS2000]], [[ngn/apl]]}}

Navigation menu