enter a rule below:
speed: 50
cell size: 5
×

Rules for Langtons Ant should be composed of "L" and "R" characters (non case sensitive). Any other characters will be ignored. An example rule would be "LLRR" which grows symmetrically from the origin. (hint: try LLLLRRRRRLLLRRRRRR or RRRLLLRRLLLRRRRLLLLLLL :)

Any given rule sometimes results in a "highway" that repeats a particular pattern and continues in one direction. For instance, the default rule "LR" results in a highway in ~10000 steps

For more on how rules work, check out https://en.wikipedia.org/wiki/Langton%27s_ant#Extension_to_multiple_colors

Colors are picked randomly when a new rule is started. The number of colors directly correspond to the number of characters in the rule. The base case is always black. Reseting the ant will pick a new color palette.