A simple interactive simulation of Langton's Ant built with HTML5 Canvas and JavaScript.
- Visualizes the classic Langton's Ant cellular automaton
- Adjustable simulation speed
- Add multiple ants
- Toggle grid overlay
- Open
src/index.html
in your browser or visit Langton's Ant. - Use the controls to:
- Adjust speed with the slider
- Add more ants with the "Add Ant" button
- Toggle the grid overlay
/src
βββ index.html # Main simulation and UI
README.md # Project documentation
- The ant moves on a grid of black and white cells.
- At each step:
- Turns right on a white cell, left on a black cell
- Flips the color of the cell
- Moves forward
- The simulation wraps around the edges.
MIT License
Made for fun and science! πβ¨