package game_of_life
Conway's game of life game of life implementation.
- Alphabetic
- By Inheritance
- game_of_life
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class Alive(x: Int, y: Int, representation: Char = 'o') extends Cell with Product with Serializable
Alive cell.
- trait Cell extends AnyRef
Cell representation for game of life.
- case class Dead(x: Int, y: Int, representation: Char = 'x') extends Cell with Product with Serializable
Dead cell.
- trait Game extends AnyRef
General concept of game.
- case class GameOfLifeGame(state: Seq[Seq[Cell]]) extends Game with Product with Serializable
Conway's game of life.
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.
Value Members
- object Cell
Companion object for Cell.
- object GameOfLife extends CLIConfigTestableMain
Main program.
- object GameOfLifeGame extends Serializable
Companion object for Game of Life.
- object GameOfLifeOscillators