Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 460 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 460 Bytes

life.hs

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

See it in action: https://asciinema.org/a/JhfMNFYTlr4SdtDFvOO2yFecv

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.