src/Maze.js
function Maze(width, height) {
    if (width < 0 || height < 0)
        throw new Error('invalid size: ' + width + 'x' + height);
    this._width = width;
    this._height = height;
    this._blockWidth = ((width+1)+15) >> 4;
    this._grid = new Array(this._blockWidth * (height + 1));
    for (var i = 0; i < this._blockWidth * (height + 1); i ++)
        this._grid[i] = 0;
}
function Maze(width, height) {
    if (width < 0 || height < 0)
        throw new Error('invalid size: ' + width + 'x' + height);
    this._width = width;
    this._height = height;
    this._blockWidth = ((width+1)+15) >> 4;
    this._grid = new Array(this._blockWidth * (height + 1));
    for (var i = 0; i < this._blockWidth * (height + 1); i ++)
        this._grid[i] = 0;
}
function Maze ( width , height ) { if ( width < 0 || height < 0 ) throw new Error ( 'invalid size: ' + width + 'x' + height ) ; this . _width = width ; this . _height = height ; this . _blockWidth = ( ( width + 1 ) + 15 ) >> 4 ; this . _grid = new Array ( this . _blockWidth * ( height + 1 ) ) ; for ( var i = 0 ; i < this . _blockWidth * ( height + 1 ) ; i ++ ) this . _grid [ i ] = 0 ; }
A Maze is a rectangular grid of cells, where each cell
may have passages in each of the cardinal directions.
The maze is initialized with each cell having no passages.

@constructor
@param {integer} width
@param {integer} height
A Maze is a rectangular grid of cells where each cell may have passages in each of the cardinal directions . The maze is initialized with each cell having no passages .