Langton's ant: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: changed/added comments and whitespace, changed indentations.) |
m (added whitespace before the TOC.) |
||
Line 7: | Line 7: | ||
# The Ant then moves forward to the next cell, and repeat from step 1. |
# 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. |
<br>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 infinitely far away. |
Conceptually the ant can then travel infinitely far away. |
||
Line 17: | Line 17: | ||
;See also |
;See also |
||
* [[Conway's Game of Life]] |
* [[Conway's Game of Life]] |
||
<br><br> |
|||
=={{header|Ada}}== |
=={{header|Ada}}== |