life: Run Conway's Game of Life.

Description Usage Arguments

View source: R/life.R

Description

life runs Conway's Game of Life, using standard rules.

Usage

1
life(size, ngen = 1000, update.freq = 10)

Arguments

size

(numeric) the size of the board (the length of its sides).

ngen

(numeric) the number of generations to run.

update.freq

(numeric) specifies the number of generations between plot updates (since plot updates are by far the slowest here, plotting results too often can become quite slow).


mtrybulec/life documentation built on May 23, 2019, 8:19 a.m.