Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
14
Task/Langtons-ant/Uiua/langtons-ant.uiua
Normal file
14
Task/Langtons-ant/Uiua/langtons-ant.uiua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Draw Langton's Ant.
|
||||
|
||||
N ← 100
|
||||
# initialise dir pos map
|
||||
[¯1 0] [50 50] ↯N_N 1
|
||||
# Run until out of bounds
|
||||
⍢(
|
||||
⊙(⟜(⍜⊡(-:1)))
|
||||
⟨⍜(⊡1|¯)⇌|⇌⍜(⊡1|¯)⟩:⊙(⊡,,)
|
||||
⟜+
|
||||
| ≥0⋅/↧
|
||||
)
|
||||
# Scale up
|
||||
▽⟜≡▽4◌◌
|
||||
Loading…
Add table
Add a link
Reference in a new issue