Skip to content

vivarium

vivarium<N>(neighborhoodName?, options?): VivariumBlueprint<N>

Defined in: vivarium/vivarium.ts:11

Creates a new vivarium builder used to define elements, kinds, and rules.

N extends Neighborhood = "square"

N

The neighborhood type to use. Defaults to "square" (Moore neighborhood, 8 neighbors). Use "cross" for a von Neumann neighborhood (4 neighbors).

Optional configuration object. Use { wrapping: true } to enable toroidal grid wrapping. Defaults to non-wrapping.

boolean

VivariumBlueprint<N>

A VivariumBlueprint instance.