lifegame: Lifegame

Description Usage Arguments Value

View source: R/lifegame.R

Description

Lifegame

Usage

1
lifegame(input = first_gen(), n = 1, ...)

Arguments

input

An matrix composed of 0L and 1L.

n

Number of generations to calculate.

...

Other parameters passed down to methods

Value

A lifegame class data.frame with 4 integer columns. The x and y columns indicate their coordinates. The generation column indicates n-th generation of lifegame. The life column indicates if the cell is dead (0) or alive (1L).


atusy/lifegamer documentation built on July 3, 2020, 11:53 p.m.