3 ms·
This single line code {def U1 {lambda {:n} {if {< :n 0} then else {if {< {floor {* {random} 2}} 1} then ╲ else ╱} {U1 {- :n 1}}}}} {U1 1000} draws the la
by martyalain 9y ago
This single line code
{def U1 {lambda {:n} {if {< :n 0} then else {if {< {floor {* {random} 2}} 1} then ╲ else ╱} {U1 {- :n 1}}}}} {U1 1000}
draws the labyrinthic universe in any web browser. See http://lambdaway.free.fr/workshop/?view=U1 http://lambdaway.free.fr/workshop/?view=U1
- martyalain 9y agoThis is a smaller one: {map {lambda {_} {if {< {floor {* {random} 2}} 1} then ╲ else ╱}} {serie 1 2000}}