Table of Contents
Langton's Ant is a cellular automaton model consisting of an ant moving on a grid according to some simple rules, creating interesting patterns over time. The emergent behavior of this model demonstrates how complex patterns can emerge from simple rules. Have fun exploring the world of ants!
- Compile the project using a C compiler (e.g., GCC).
gcc main.c newSleep.c random.c color.c -o ant
- Use Command-Line Arguments to play the Ant Simulation
For example
./ant test.txt niterations tsleep
./ant map.txt 100 0.5