Skip to content

pificaria/conway.life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

conway.life

Some very old implementations I made of Conway's Game of Life.

Direct version

The C version is a very direct interpretation of Conway's Game of Life on a Torus. To build it, run

cd c; make

Comonadic interpretation

Two blog posts inspired the haskell and ocaml implementations: Piponi's and Kmett's. Both describe cellular automata evaluation as comonadic. The haskell source is better documented and shows what is happening and where. To build it, use

cd hs; stack exec --resolver lts-14.18 -- ghc life.hs

To build the ocaml version,

cd ml; ocamlbuild -lib unix life.native

About

Some implementations of Conway's Game of Life

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published