EntertainmentLangton’s Ant is a cellular automaton that models an ant moving on a grid of cells following some very basic rules.
At the start of the simulation, the ant is randomly positioned on a 2D-grid of white cells. The ant is also given a direction (either facing up, down, left or right).
The ant then moves according to the colour of the cell it is currently sitting in, with the following rules:
1.If the cell is white, it change...