Langton's ant is a cellular automaton that models an ant sitting on a plane of cells, all of which are white initially, facing in one of four directions. Each cell can either be black or white. The ant moves according to the color of the cell it is currently sitting in, with the following rules: 1. If the cell is black, it changes to white and the ant turns left; 2. If the cell is white, it changes to black and the ant turns right; 3. The Ant then moves forward to the next cell, and repeat from step 1.
Instructions from http://rosettacode.org/wiki/Langton%27s_ant