Click the green flag and watch Langton's ant work hard flipping tiles until it touches the edge (at 9460 steps).
The red ant follows two simple rules: ● If standing on a white tile, make it black, turn 90° clockwise, and move forward one tile. ● If standing on a black tile, make it white, turn 90° counter-clockwise, and move forward one tile. The rules are very simple, but the pattern that emerges when the ant follows these rules is not. Thanks to @Smol_Crewm8 for telling me about Langton's ant. Learn more about Langton's ant here: https://en.wikipedia.org/wiki/Langton%27s_ant All code and art by me.