This project implements Langton's Ant on a torus using C++ and displays it using Rapatas/CAVIS. Langton's Ant is a cellular automaton with a complex emergent behavior but very simple set of rules:
- At a white square, turn 90° right, flip the color of the square, move forward one unit
- At a black square, turn 90° left, flip the color of the square, move forward one unit
langtons_ant_sfml --ants 3 --height 100
Follow the project's installation instructions.
git clone https://github.com/Rapatas/langtons_ant_sfml
mkdir langtons_ant_sfml/build
cd langtons_ant_sfml/build
cmake ..
make install # As root