function GameOfLife(params) {
  params = params || {};
}

GameOfLife.prototype.getCols = function() {
}

GameOfLife.prototype.getRows = function() {
}

module.exports = GameOfLife;
function GameOfLife(params) {
  params = params || {};
  if (Object.keys(params).length == 0) {
    params.cols = 5;
    params.rows = 5;
  }
  this.init(params);
}

GameOfLife.prototype.init = function(params) {
  params = params || {};

  if (params.cols && params.rows) {
    this._cols = params.cols;
    this._rows = params.rows;
  } else
    
  throw new Error('Invalid parameters: ' + JSON.stringify(params));
}

GameOfLife.prototype.getCols = function() {
  return this._cols;
}

GameOfLife.prototype.getRows = function() {
  return this._rows;
}

module.exports = GameOfLife;
Implement getCols(), getRows() and Constructor.
Implement getCols(), getRows() and Constructor.
