aboutsummaryrefslogtreecommitdiff

Chaos ant

This is a Haskell implementation of Langton's ant.

The program draws on the terminal window, marking "black" and "white" squares with a # character or a space.

There is a very incomplete stub GTK GUI implementation.

Try it

$ ghc -O2 -dynamic ant
$ ./ant

The screenshot below shows the state of the grid after a few iterations (you can see the "ant" as a , near the top-right corner):

Screenshot