lib/scenario-builder.js
Function getScenario
has 112 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getScenario() {
var circumradius = hexInfo.circumradius;
var apothem = hexInfo.apothem;
var layout = this.getLayout();
var numberTokens = layout.numberTokens;
Function getTileLayout
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getTileLayout(layout) {
var circumradius = hexInfo.circumradius;
var apothem = hexInfo.apothem;
var tiles = layout.tiles.map(function(row) {
Function processEdges
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
processEdges(board, edges) {
var edges1 = _.chain(edges)
.map(function(edge) {
return {
center: edge.center,