gameoflife.game

Undocumented in source.

Members

Aliases

CellList
alias CellList = Cell[]
Undocumented in source.

Functions

deadNeighbours
CellList deadNeighbours(Cell myCell, CellList list)

Get a list of all dead neighbours

evolve
void evolve(CellList list)

The function that moves our cells to the next generation

livesIn
bool livesIn(Cell myCell, CellList list)

Check if a cell lives

neighbours
long neighbours(Cell myCell, CellList list)

Count cell neighbours

remove
CellList remove(CellList list, Cell myCell)

Remove a cell from the world

Structs

Cell
struct Cell
Undocumented in source.

Meta