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:

    The only rules comedy can tolerate are those of taste, and the only limitations those of libel.
    James Thurber (1894–1961)

    The young break rules for fun. The old for profit.
    Mason Cooley (b. 1927)

    ... a large portion of success is derived from flexibility. It is all very well to have principles, rules of behavior concerning right and wrong. But it is quite as essential to know when to forget as when to use them.
    Alice Foote MacDougall (1867–1945)