life_step: Forward sep a square matrix one iteration of Conway's come of...

Description Usage Arguments Value See Also Examples

Description

Assumes zero-padded on all sides.

Usage

1

Arguments

d

a square matrix logical values

Value

next step matrix

See Also

read_cells, write_mat_region

Examples

1
2
3
4
5
6
7
8
9
d <- matrix(data = FALSE, nrow = 10, ncol = 10)
glider_txt <- "
.O
..O
OOO
"
glider <- read_cells(glider_txt)
d <- write_mat_region(d, 5, 5, glider)
life_step(d)

WinVector/FastBaseR documentation built on May 21, 2019, 4:04 a.m.