In this
simple program, each ant takes a step forward, toggles the
color of the square it lands on, and turns left or right depending
on the square's original color. Complex patterns emerge from
this simple rule. Try experimenting with the initial positions
of the ants to see different patterns result.
|