Skip to content

Intermact API Reference / @intermact/core / stepLife2D

Function: stepLife2D()

stepLife2D(grid, width, height): Uint8Array

Defined in: packages/core/src/pcg/cellular-automaton.ts:69

Advance one step of Conway's Game of Life on a fixed (non-wrapping) grid.

Parameters

grid

Uint8Array

width

number

height

number

Returns

Uint8Array

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)