An implementation of "Langton loops", an 8-state self-replicator cellular automaton. The video shows an "animation" of the progression of 900 generations. In each generation, every cell updates from one color to another based only on its current color and those of its north, east, south, and west neighbors.
Like what you see? Join our course and build Langton loops at http://programmingforlovers.com.