A basic implementation of Langton's Ant that also allows you to spawn different kinds of virtual ants (vants) in any location and direction, and watch them interact with each other and their environment. Experiment to see what kinds of patterns you can produce! Blue vant - The classic. Turns right on black squares and left on green squares, toggling the color of each square it lands on. Red vant - The inverse of the blue vant. Turns left on black and right on green. White vant - Moves in a straight line. Brown vant - Moves completely randomly. Turbo mode will make the simulation run even faster if desired!
More info about Langton's Ant: https://en.wikipedia.org/wiki/Langton%27s_ant#:~:text=The%20ant%20can%20travel%20in,square%2C%20move%20forward%20one%20unit P.S. I tried my darndest to make the vants bounce off the edges of the stage, but every time I gave some form of edge detection to any type of vant, it would inexplicably stop changing green squares to black. Will update this note if I fix this in the future.