read_cells: Read life text file format.

Description Usage Arguments Value See Also Examples

Description

Format is: rows of non-empty lines of . and O with ! headers

Usage

1

Arguments

txt

incoming text as a single string

Value

matrix

See Also

life_step, write_mat_region

Examples

1
2
3
4
5
6
glider <- "
.O
..O
OOO
"
read_cells(glider)

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