Skip to content

amhndu/life.hs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published