Langton's ant: Difference between revisions
m
→{{header|Easyprog.online}}
Line 1,744:
=={{header|Easyprog.online}}==
[https://easyprog.online/ide/run.html?code=len%20f%5B%5D%20100%20%2A%20100%0Afunc%20show%20.%20.%0Afor%
<lang>len f[] 100 * 100
func show . .
for
for
if f[
move
rect 1 1
.
Line 1,757:
.
.
dy[] = [ -1 0 1 0 ]
while x >= 0 and x < 100 and y >= 0 and y < 100
f[
x += dx[
y += dy[
.
.
call run 70 40 0
call show</lang>
|