Haskell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
seeds
.gitignore
README.md
life.hs

README.md

life.hs

A dead-simple simulator for Conway's Game of Life in Haskell.

See it in action: https://asciinema.org/a/7gx6sbb86v1ccztq27uzxm06r

Compiling:

$ ghc --make life.hs

Usage:

./life < seeds/PulsarSeed.txt

Or

$ runhaskell life.hs < seeds/GliderSeed.txt

Seeds are space separeted matrices of 0 and 1 representing dead/alive cell. Note that it uses ANSI escape sequences so this may not work on Windows.