read_cells.Rd
Format is: rows of non-empty lines of . and O with ! headers
read_cells(txt)
txt | incoming text as a single string |
---|
matrix
glider <- " .O ..O OOO " read_cells(glider)#> [,1] [,2] [,3] #> [1,] FALSE TRUE FALSE #> [2,] FALSE FALSE TRUE #> [3,] TRUE TRUE TRUE