Information

Langton's ant is a two-dimensional universal Turing machine with a very simple set of rules but complex emergent behavior. It was invented by Chris Langton in 1986 and runs on a square lattice of black and white cells.


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° clockwise, flip the color of the square, move forward one unit
  • At a black square, turn 90° counter-clockwise, 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 and 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.


Source code

https://github.com/aikoncwd/langton-ant

StatusReleased
PlatformsHTML5, Windows, macOS, Linux
AuthorAikonCWD
GenreSimulation
Made withGodot
Average sessionA few minutes
InputsKeyboard, Mouse

Download

Download NowName your own price

Click download now to get access to the following files:

langton-ant.exe 34 MB
langton-ant.x86_64 35 MB
langton-ant.zip 26 MB

Leave a comment

Log in with itch.io to leave a comment.