This README file was written with the help of AI.
This project is an implementation of Langton's Ant using the Raylib graphics library. Langton's Ant is a two-dimensional universal Turing machine with a very simple set of rules but complex emergent behavior. The ant moves on a grid of black and white cells, turning and flipping the color of the cell according to simple rules. However, instead of exactly one ant, there are one or more (upper bound can be configured in the code) ants in this project.
langtons-ant-w-randomization.mp4
- Visual simulation of Langton's Ant
- Raylib (C graphics library)
- C compiler (e.g., gcc)
- Make sure Raylib is installed on your system.
- Compile the project using gcc:
(You may need to adjust the linker flags depending on your system.)
gcc ant.c -o ant -lraylib -lm
After building, run the simulation with:
./antant.c: Main source code for the simulation
This project is open source, released under the MIT License. See the LICENSE file for details.