On Github zhon / code-retreat
Started by Corey Haines
3,000 Programmers and YouYou have a world containing cells. Each cell has 8 neighbors.
Every generation, cells live or die according to the following rules:
nextState :: CellState -> NeighborCount -> CellState
nextState Dead 3 = Alive
nextState _ n | n < 2 = Dead
| n > 3 = Dead
| Alive
A.A ... .A. ... A.A ... .A. ... .A. ...
.D. -> .A. .A. -> .D. .AA -> ... .A. -> .A. .A. -> .A.
.A. ... ... ... A.. ... A.. ... A.A ...
All rules are applied to every cell at the same time.