An open API service indexing awesome lists of open source software.

https://github.com/limzykenneth/langtons-ant

Langton's Ant made with p5.js ––
https://github.com/limzykenneth/langtons-ant

Last synced: 8 months ago
JSON representation

Langton's Ant made with p5.js ––

Awesome Lists containing this project

README

          

# langtons-ant

##### Langton's ant is a two-dimensional Turing machine with a very simple set of rules but complex emergent behavior. It was invented by Chris Langton in 1986 and runs on a square lattice of black and white cells.

I recommend [this video](https://www.youtube.com/watch?v=NWBToaXK5T0) by Numberphile to explain it better.

---

Rules are simple:

1. At a white square, turn 90° right, flip the color of the square, move forward one unit.
2. At a black square, turn 90° left, flip the color of the square, move forward one unit.

Written with [p5.js](http://p5js.org).