Skip to content

arjav-sankadasariya/langtons-ant

Repository files navigation


Ants Simulation

Table of Contents
  1. About The Project
  2. How to Run
  3. Screenshots

About The Project

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!

Built With

c_logo

How to Run

  1. Compile the project using a C compiler (e.g., GCC).
    gcc main.c newSleep.c random.c color.c -o ant
  2. Use Command-Line Arguments to play the Ant Simulation
    ./ant test.txt niterations tsleep
    For example
    ./ant map.txt 100 0.5

Screenshots

Screenshot 1
Screenshot 2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published