Essentially, this was originally a really fast and optimized version of Langton's Ant. I realized that by changing the order of the instructions left()
, right()
, and move()
inside the main loop, you could make different CA. Feel free to experiment. The current setup is a very interesting one: as the ant iterates through, it adds a new layer on the outside of the current structure, and changes the inside back to normal. Try clicking in whitespace and see what happens.
Controls:
- Click - moves the ant to the cursor position
- space - resets the screen
- = - speeds up the simulation
- - - slows down the simulation
- m - pauses until another key is pressed