generate_board_mat: create a board by matrix

Description Usage Arguments Value Examples

View source: R/utils.R

Description

create a board by matrix

Usage

1
generate_board_mat(n = 5, p = 0.25)

Arguments

n

, the length size of the board

p

the ratio of the balck borad

Value

a new borad

Examples

1
2
3
generate_board_mat(5,0.25)
generate_board_mat(n = 8, p = 0.75)
generate_board_mat(n = 8, p = 0)

melody789/percolate documentation built on Nov. 4, 2019, 6:24 p.m.