Click the Green flag to watch the behavior of Langton's Ant. Depending on the rules, the sprite may (or may not) end up drawing a repeating pattern. RL for example eventually results in an endless path called a "highway" Rules to try: RL After a total of about 10000 steps, it draws a highway. LLRR Draws a symmetric pattern. LRRRRRLLR Draws a square shape with internal highways. RRLLLRLLLRRR Draws a triangle-like shape after about 15000 steps.
A Sprite following simple rules: Move forward, then change the color of the previous square. Depending on the color of the current square, either turn left or right, More info: https://en.wikipedia.org/wiki/Langton%27s_ant http://mathworld.wolfram.com/LangtonsAnt.html https://www.youtube.com/watch?v=NWBToaXK5T0