sclass ScoreBoard {
double fullScore;
new Map scores;
void print() {
printAsciiHeading("Score board (full score: " + fullScore + ")");
new L l;
for (A key : keys(sortByValueDesc(scores))) {
double score = scores.get(key);
l.add(key + " = " + score + " (" + ratioToIntPercent_floor(score, fullScore) + "%)");
}
pnl(l);
}
}