percolate.board: percolate.board function; determines result_board given input...

Description Usage Arguments Value Examples

View source: R/percolate.R

Description

percolate.board function; determines result_board given input "board" object and returns the boolean result of percolation

Usage

1
2
## S3 method for class 'board'
percolate(x)

Arguments

x

a "board" object (superclass - matrix, subclass - board)

Value

a list of the result_board and the result i.e. whether the "board" percolates (TRUE) or not (FALSE)

Examples

1
percolate(board_example_list[[1]]), percolate(board_example_list[[2]]), percolate(board_example_list[[3]])

adityagandhi81298/percolate documentation built on Nov. 1, 2019, 8:54 p.m.