Langton's ant with MatrixCanvas

A universal Turing machine with only two rules:

  1. At a inactive tile, turn 90° clockwise, flip the color of the tile, move forward one unit.
  2. At a active tile, turn 90° counter-clockwise, flip the color of the tile, move forward one unit.

An ant starting on a blank canvas would move on infinitely. (It does stop at the edges of the canvas in this implementation.)

See Wikipedia: Langton's ant

Langton's ant

You can flip the color of each tile by clicking on it. When done click below.

Presets

Choose a preset, i.e. some tiles are already active.

Options

Debug