Source

repa-life /

Filename Size Date modified Message
src
15 B
34.3 KB
1.0 KB
46 B
826 B

Conway's Life in Haskell using repa and OpenGL

About

This is an implementation of Conway's Life in Haskell that uses repa for the simulation and OpenGL for the view. I detailed the implementation in this blog post. There is an earlier implementation using flat vectors and Gloss.

Use

This package is cabalized, so build the executable with the following commands

cabal configure
cabal build

Usage: repa-life <grid size> [generations]

grid size
This controls how many cells are in the Life grid. If grid size is N, the grid will be NxN cells.
generations
This optional argument will limit the length of the simulation. If this is not present, the program will run until it is manually terminated.