Packages

package game_of_life

Conway's game of life game of life implementation.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. game_of_life
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class Alive(x: Int, y: Int, representation: Char = 'o') extends Cell with Product with Serializable

    Alive cell.

  2. trait Cell extends AnyRef

    Cell representation for game of life.

  3. case class Dead(x: Int, y: Int, representation: Char = 'x') extends Cell with Product with Serializable

    Dead cell.

  4. trait Game extends AnyRef

    General concept of game.

  5. 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

  1. object Cell

    Companion object for Cell.

  2. object GameOfLife extends CLIConfigTestableMain

    Main program.

  3. object GameOfLifeGame extends Serializable

    Companion object for Game of Life.

  4. object GameOfLifeOscillators

Inherited from AnyRef

Inherited from Any

Ungrouped