|
|
@ -742,8 +742,9 @@ class SettingsStorage { |
|
|
|
version: 1, |
|
|
|
version: 1, |
|
|
|
log: 'info', |
|
|
|
log: 'info', |
|
|
|
allowTemplateAugmenting: false, |
|
|
|
allowTemplateAugmenting: false, |
|
|
|
retryTemplate: 30, |
|
|
|
retryTemplate: 120, |
|
|
|
attemptTemplates: 50, |
|
|
|
attemptTemplates: 20, |
|
|
|
|
|
|
|
difficulty: 35, |
|
|
|
svgEffects: false, |
|
|
|
svgEffects: false, |
|
|
|
dimBlocked: true, |
|
|
|
dimBlocked: true, |
|
|
|
logSolution: false, |
|
|
|
logSolution: false, |
|
|
@ -1200,8 +1201,7 @@ class Game { |
|
|
|
if (neigh.freeSequence >= 3) { |
|
|
|
if (neigh.freeSequence >= 3) { |
|
|
|
candidates.push({ |
|
|
|
candidates.push({ |
|
|
|
n, |
|
|
|
n, |
|
|
|
cw: neigh.centerWeight, |
|
|
|
cw: neigh.centerWeight |
|
|
|
neighs: neigh.neighbours, |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1214,7 +1214,7 @@ class Game { |
|
|
|
let top = []; |
|
|
|
let top = []; |
|
|
|
let topw = candidates[0].cw; |
|
|
|
let topw = candidates[0].cw; |
|
|
|
for(let cand of candidates) { |
|
|
|
for(let cand of candidates) { |
|
|
|
if (cand.cw <= topw + 18) { |
|
|
|
if (cand.cw <= topw + this.cfg.difficulty) { // TODO this could vary by template
|
|
|
|
top.push(cand); |
|
|
|
top.push(cand); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|