MCPcopy
hub / github.com/gabrielecirulli/2048 / Grid

Function Grid

js/grid.js:1–4  ·  view source on GitHub ↗
(size, previousState)

Source from the content-addressed store, hash-verified

1function Grid(size, previousState) {
2 this.size = size;
3 this.cells = previousState ? this.fromState(previousState) : this.empty();
4}
5
6// Build a grid of the specified size
7Grid.prototype.empty = function () {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected