Langton's ant: Difference between revisions

m
ce
(Added zkl)
m (ce)
Line 5:
# The Ant then moves forward to the next cell, and repeat from step 1.
 
This rather simple ruleset leads to an initially chaotic movement pattern, and after about 10000 steps, a cycle appears where the ant moves steadily away from the starting location in a diagonal corridor about 10 pixels wide. Conceptually the ant can then travel to infinitely far away.
 
For this task, start the ant near the center of a 100 by 100 field of cells, which is about big enough to contain the initial chaotic part of the movement. Follow the movement rules for the ant, terminate when it moves out of the region, and show the cell colors it leaves behind.
 
The problem has received some analysis,; for more details, please take a look at the Wikipedia article.
 
=={{header|Ada}}==
2,490

edits