Langton's ant with MatrixCanvas
A universal Turing machine with only two rules:
- At a inactive tile, turn 90° clockwise, flip the color of the tile, move forward one unit.
- 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.)