
Hexagonal Langton's Ant
A tiny ant following tiny rules.
Cellular Automata
JavaScript
Langton’s Ant is a cellular automaton with a basic premise: look at the tile you’re standing on, turn based on its color, flip the color, step forward. Everything below comes from these simple rules. Turing machines can really be incredible things! Mine runs on a hexagonal grid, so each rule is one of six turns instead of four. Try editing the rule string, or hit the dice for a random one. Some rules build highways, some build patterns, and others will just create a mess.
Personal favorites:
L1,L1,R2,R2almost cardioidL1,R2,L1maze generatorR1,R2,N,U,R2,R1,L2starsN,L,R,Nscreen fillerN,U,L,Lspider webN,N,L1,R2,N,NdiamondsR2,L2,L2staircase builderR1,U,L1,R2,N,L2triangle