Langton's ant: Difference between revisions
Content added Content deleted
m (→{{header|APL}}) |
m (→{{header|APL}}: slow updates down a bit so RIDE can keep up) |
||
Line 539: | Line 539: | ||
⍝ to watch it run, open the variable pic in the monitor before executing this step |
⍝ to watch it run, open the variable pic in the monitor before executing this step |
||
{} { state ∘← ⍵ ⋄ pic ∘← '.⌺'[1+⊃1⌷⍵] ⋄ _←⎕dl |
{} { state ∘← ⍵ ⋄ pic ∘← '.⌺'[1+⊃1⌷⍵] ⋄ _←⎕dl ÷200 ⋄ step ⍵} ⍣≡ langton 100</syntaxhighlight> |
||
{{Out}} |
{{Out}} |