Langton's ant: Difference between revisions

Content added Content deleted
Line 2,272: Line 2,272:
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
len f[] 100 * 100
len f[] 100 * 100
func show . .
proc show . .
for y = 0 to 99
for y = 0 to 99
for x = 0 to 99
for x = 0 to 99
Line 2,282: Line 2,282:
.
.
.
.
func run x y dir . .
proc run x y dir . .
dx[] = [ 0 1 0 -1 ]
dx[] = [ 0 1 0 -1 ]
dy[] = [ -1 0 1 0 ]
dy[] = [ -1 0 1 0 ]