2022-10-23.01-01-30.mp4
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.
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.
- Use of Multithreading for better performance.
- Support for Windows and UNIX.
- Compatibility whith UTF-8.
git clone https://github.com/iluzioDev/langton-ant
cd langton-ant
make
Given a board size (via User Input), the program will indefinitely execute the movements of a Langton's ant introduced in the center of the grid. Users can cancel the study at any time.
IluzioDev 💻 |
Distributed under the MIT License. Click here for more information.