Enter the number of ants you want to put in your ant colony.
This is the Langton's ant cellular automaton. It is fairly simple. There is an ant on a grid of squares. If it is on a white square, it turns the square black, turns 90 degrees right, and moves one square. If it is on a black square, it turns the square white, turns 90 degrees left, and moves one space. With the way it works, turbo mode WILL NOT WORK. It uses stamping and touching color (?), which depend on the screen refreshing. turbo mode keeps the screen refresh rate constant, meaning that the changes an ant makes will not be registered until the screen refreshes. It has a tendency to move around in what seems to be a random pattern until it creates a "highway", a repeating pattern going in a diagonal direction (with 1 ant, it takes about 10,000 steps for this to happen). Ants can sometimes move on the highways, modifying the pattern of it as they go along. This will sort of simulate an ant colony.