dist/wolfcage.dev.js
// Setup the initial binary representation of the row
Setup the initial binary representation of the row
Setup the initial binary representation of the row
_generateInitialBinary() {
    var col, j, ref, seed_col;
    seed_col = Math.ceil(this._noColumns / 2);
    for (col = j = 1, ref = this._noColumns; (1 <= ref ? j <= ref : j >= ref); col = 1 <= ref ? ++j : --j) {
      if (col === seed_col) {
        this._aRowBinary[col] = 1;
      } else {
        this._aRowBinary[col] = 0;
      }
    }
    return this.BUS.set('toprowbinary', this._aRowBinary);
  }
_generateInitialBinary ( ) { var col , j , ref , seed_col ; seed_col = Math . ceil ( this . _noColumns / 2 ) ; for ( col = j = 1 , ref = this . _noColumns ; ( 1 <= ref ? j <= ref : j >= ref ) ; col = 1 <= ref ? ++ j : -- j ) { if ( col === seed_col ) { this . _aRowBinary [ col ] = 1 ; } else { this . _aRowBinary [ col ] = 0 ; } } return this . BUS . set ( 'toprowbinary' , this . _aRowBinary ) ; }
Setup the initial binary representation of the row
Setup the initial binary representation of the row
// The middle cell is the only one initially active