percolate_step: Board Percolation Single Entry

Description Usage Arguments Value Examples

View source: R/percolate.R

Description

Fill up the specified location with water, if possible (which means the entry is not blocked). This is a helper function of percolate_fill

Usage

1

Arguments

board

A board with the latest board state.

i

Row index of the square to be percolated.

j

Column index of the square to be percolated.

Value

A board with the updated board state. An identical board will be returned if water could not be filled into the specified location on board.

Examples

1

lilinhonglexie/percolate documentation built on Nov. 4, 2019, 4:32 p.m.