Class: Grid

GridRelated.Grid(rows, lines, pattern) → {Grid}

new Grid(rows, lines, pattern) → {Grid}

Grid constructor (2 dimensional array). all cells set with value '1' according to the pattern(coordinates), otherwise '0'.
Parameters:
Name Type Description
rows int
lines int
pattern array
Source:
Returns:
Type
Grid