Package

fmv1992.fmv1992_scala_utilities

game_of_life

Permalink

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

Type Members

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

    Permalink

    Alive cell.

  2. trait Cell extends AnyRef

    Permalink

    Cell representation for game of life.

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

    Permalink

    Dead cell.

  4. trait Game extends AnyRef

    Permalink

    General concept of game.

  5. case class GameOfLifeGame(state: Seq[Seq[Cell]]) extends Game with Product with Serializable

    Permalink

    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

    Permalink

    Companion object for Cell.

  2. object GameOfLife extends CLIConfigTestableMain

    Permalink

    Main program.

  3. object GameOfLifeGame extends Serializable

    Permalink

    Companion object for Game of Life.

  4. object GameOfLifeOscillators

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped