No config for game ID PA6; }).length;
var high = main.length - low;
var decades = new Set(main.map(function (n) { return Math.floor(n / 10) * 10; })).size;
var endings = new Set(main.map(function (n) { return n % 10; })).size;
// simple, human-readable guidance
var guidance = [];
if (odd === even) {
guidance.push('Odd and even numbers are balanced');
} else if (odd > even) {
guidance.push('More odd than even numbers');
} else {
guidance.push('More even than odd numbers');
}
if (low === high) {
guidance.push('Low and high values are evenly mixed');
} else if (low > high) {
guidance.push('More numbers in the lower half of the pool');
} else {
guidance.push('More numbers in the upper half of the pool');
}
if (decades >= Math.min(main.length, 4)) {
guidance.push('Covers several different tens ranges');
} else {
guidance.push('Concentrated in a narrow tens range');
}
var summaryLine =
'Sum: ' + sum +
' · Odd/Even: ' + odd + '/' + even +
' · Low/High: ' + low + '/' + high +
' · Distinct decades: ' + decades +
' · Distinct endings: ' + endings;
var badgesHtml = '';
for (var i = 0; i < guidance.length; i++) {
badgesHtml += '' + guidance[i] + '';
}
var outputHtml =
'' + summaryLine + '' +
'' + badgesHtml + '';
document.getElementById('setOutput').innerHTML = outputHtml;
};
}
});