Langton's Ant

by roger-
See inside
Notes and Credits

this project is a simulation of langton's ant. the red pixel is hte "ant". It works like this. if the ant is touching a grey square, it turns 90 degrees left. if it is touching a white square, it turns right. It flips the square it is touching to its opposite color. then it moves forward and repeats.


press space to start. if you want, draw a picture first, press space, and watch the ant destroy it!

WARNING: Once the ant highways (read the link above), it will stop working when it hits the edge. press the flag again to start over.

Shared: 8 Aug 2010 Modified: 8 Aug 2010
Favorite this project 1
Love this project 4
Total views 349
View the remix tree  8
More projects by roger-