src/scripts/simulation.js
// Create reactor from genome's data
Create reactor from genome's data
Create reactor from genome ' s data
createReactorFromGenome(genome) {
        for (var x = 0; x < this.nCols; x++) {
            for (var y = 0; y < this.nRows; y++) {
                this.grid[x][y] = new TILE_MAP[genome.grid[x][y]](x, y, this);
            }
        }
        this.fillEdges(this.grid);
    }
createReactorFromGenome ( genome ) { for ( var x = 0 ; x < this . nCols ; x ++ ) { for ( var y = 0 ; y < this . nRows ; y ++ ) { this . grid [ x ] [ y ] = new TILE_MAP [ genome . grid [ x ] [ y ] ] ( x , y , this ) ; } } this . fillEdges ( this . grid ) ; }
Create reactor from genome's data
Create reactor from genome ' s data