Skip to content

yackx/conway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

conway

A simple Conway's Game of Life written in Go and in Haskell.

  • No cycle detection
  • Infinite grid
  • No GUI

golang

Build and run

$ go build
$ ./conway

Unit tests

$ go test
PASS
ok      github.com/yackx/conway 0.171s

Haskell

Build and run

$ ghc conway.hs
$ ./conway

Sample output

[(0, 0) (1, 0) (2, 0) (1, 1) (2, 1)]
[(0, 0) (2, 0) (2, 1) (1, -1) (0, 1)]
[(0, 0) (2, 0) (1, -1)]
[(1, -1) (1, 0)]
[]

License

GNU GPL v.3

About

Conway's Game of Life in Go and in Haskell

Topics

Resources

License

Stars

Watchers

Forks

Contributors