Start Photos About Me Tools Contact Links

HTML5 Canvas is not supported

Langton's ant is a simple cellular automaton invented by Chris Langton in 1986.

In this automaton one special cell exists, called ant, which moves in a specific direction. With each move it changes state of other cells on the grid.

At first, ants movements create form which seems chaotic. However, after around 10,000 steps, order emerges. Ant starts building a recurrent "highway" pattern of 104 steps that repeats indefinitely.

The ant moves according to the rules below:

  • It travels in any of the four cardinal directions at each step it takes.
  • At a white square, turns 90° right, changes the color of the square to black and moves forward one unit.
  • At a black square, turns 90° left, changes the color of the square to white and moves forward one unit.

  • More information

    © Copyright 2010-2024 Jakub Hałun. All Rights Reserved

    This website uses cookies to collect anonymous statistics. By continuing navigation you agree to the use of cookies.

    Notariusz Ostrowiec