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 ––
- Host: GitHub
- URL: https://github.com/limzykenneth/langtons-ant
- Owner: limzykenneth
- License: bsd-2-clause
- Created: 2015-09-20T21:31:02.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-23T15:23:23.000Z (almost 11 years ago)
- Last Synced: 2025-07-04T20:52:06.121Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://langtons-ant.limzykenneth.com/
- Size: 148 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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).