Langton’s Ant

I wrote an implementation of Langton’s Ant in Javascript, using the canvas element to render the animation. The basic rules are as follows: Staring with a grid of squares, one square is designated as the “ant” (the red square) and an initial direction is chosen. Each square can is binary, and can be one of […]

read more »