case classGameOfLifeGame(state: Seq[Seq[Cell]]) extends Game with Product with Serializable
Conway's game of life.
See also
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
Rules:
1. Any live cell with fewer than two live neighbours dies, as if by
underpopulation.
2. Any live cell with two or three live neighbours lives on to the next
generation.
3. Any live cell with more than three live neighbours dies, as if by
overpopulation.
4. Any dead cell with exactly three live neighbours becomes a live cell, as
if by reproduction.
Linear Supertypes
Serializable, Serializable, Product, Equals, Game, AnyRef, Any
Conway's game of life.
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life Rules: 1. Any live cell with fewer than two live neighbours dies, as if by underpopulation. 2. Any live cell with two or three live neighbours lives on to the next generation. 3. Any live cell with more than three live neighbours dies, as if by overpopulation. 4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.