There is an infinite two dimensional grid.
Each cell in the grid can either be "alive" or "dead".
Given the current state of the grid calculate the next "generation" of the grid given the following rules:
- Any live cell with fewer than two live neighbours dies, as if caused by under-population.
- Any live cell with two or three live neighbours lives on to the next generation.
- Any live cell with more than three live neighbours dies, as if by over-population.
- Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
- Editor: Atom
- Plugins: script - 3.10.1
- clone https://github.com/imtapps-dev/tddworkshop.git into
~/Projects/tddworkshop