Dive into the mesmerizing world of Langton's Ant, a captivating cellular automaton that unveils the wonders of emergent behavior and complexity through deceptively simple rules. Welcome to our GitHub project, where we present a Java-based Langton's Ant simulator, inviting you to embark on a journey of exploration and experimentation. Witness how a solitary ant, guided by basic principles, weaves intricate patterns on a grid canvas.
Langton's Ant, named after its creator Christopher Langton, is a cellular automaton consisting of a grid of cells, each of which can be in one of two states: black or white. An "ant" is placed on one of the cells and moves according to a set of simple rules:
- If the ant is on a white cell, it turns 90 degrees to the right, flips the color of the cell to black, and moves one step forward.
- If the ant is on a black cell, it turns 90 degrees to the left, flips the color of the cell to white, and moves one step forward.
These seemingly straightforward rules lead to surprising and intricate patterns as the ant continues to move.
- Simulate Langton's Ant behavior on a grid.
- Adjustable grid size.
- Visualize the grid and ant's movement in real-time.
To get started with the Langton's Ant simulator, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/kzzazzk/Langton-Ant-Simulator.git
-
Run Ejecucion.java
java Ejecucion.java