An implementation of Langton's Ant, a simple cellular automaton that exhibits complex emergent behavior.
Steps: 0 |
Active Ants: 2
Zoom: 100% | Grid Size: 100x100
Langton's Ant Rules:
White cell: Turn right 90°, flip the color to black, move forward one unit
Black cell: Turn left 90°, flip the color to white, move forward one unit
Instructions:
Start/Stop: Begin or pause the simulation
Step: Execute one step manually
Reset: Return to initial state
Random Ants: Place ants at random positions
Ant Count: Change number of active ants
Mouse wheel: Zoom in/out
Drag: Pan around the grid
Reset Zoom: Return to original view
About Langton's Ant:
Despite simple rules, Langton's Ant creates complex patterns. After about 10,000 steps,
it typically builds a repeating "highway" pattern that extends infinitely. Multiple ants
create even more complex and beautiful patterns through their interactions.