Langton's Ant - Rules

Rules

Squares on a plane are colored variously either black or white. We arbitrarily identify one square as the "ant". The ant can travel in any of the four cardinal directions at each step it takes. The ant moves according to the rules below:

  • At a white square, turn 90° right, flip the color of the square, move forward one unit
  • At a black square, turn 90° left, flip the color of the square, move forward one unit

Langton's ant can also be described as a cellular automaton, where the grid is colored black or white, the "ant" square has one of eight different colors assigned to encode the combination of black/white state and the current direction of motion of the ant.

Read more about this topic:  Langton's Ant

Famous quotes containing the word rules:

    A man often thinks he rules himself, when all the while he is ruled and managed; and while his understanding directs one design, his affections imperceptibly draw him into another.
    François, Duc De La Rochefoucauld (1613–1680)

    Critics are more committed to the rules of art than artists are.
    Mason Cooley (b. 1927)

    Here was a place where nothing was crystallized. There were no traditions, no customs, no college songs .... There were no rules and regulations. All would have to be thought of, planned, built up, created—what a magnificent opportunity!
    Mabel Smith Douglass (1877–1933)