Namespace: GridRelated

GridRelated

Source:

Classes

Grid

Members

(static) draw

Drawing the current grid values on given canvas.
Source:

(static) findNeighbours

Returns the amount of nearby members of the target cell at [x,y] point on grid.
Source:

(static) nextStep

Returns an updated grid(game board) after one step according to the game's rules.
Source:
See:

(static) populateGrid

Sets the given pattern(coordinates) on given grid.
Source:

(static) setupCanvas

Setups canvas context and binds it to the canvas object.
Source:

(static) setupGrid

Returns new grid by given rows and lines size and initialized with given pattern.
Source: