diff --git a/packages/p2/bin/scoreboard b/packages/p2/bin/scoreboard index 64b312b..4f5199e 100755 --- a/packages/p2/bin/scoreboard +++ b/packages/p2/bin/scoreboard @@ -36,20 +36,22 @@ function head() { print "" print "" print "
" print "" + for (ncat = 0; ncat < ncats; ncat += 1) { + printf("%s\n", ncat, categories[ncat]); + } + print "
" + for (i = nteams-1; i >= 0; i -= 1) { score = scores[i]; if (score == scores[i-1]) continue; # Skip duplicates @@ -124,6 +132,7 @@ END { } name = escape(team_names[hash]) + print "" printf("%s\n", name) for (ncat = 0; ncat < ncats; ncat += 1) { @@ -131,12 +140,13 @@ END { points = cat_points[hash, cat]; if (cat_points[hash, cat] > 0) { - width = cat_score[hash, cat] / max_score * 80 + width = cat_score[hash, cat] / max_score * 90 printf("", cat, points, name) - printf(" %d\n", + printf("%d", ncat, width, cat_points[hash, cat]) } } + print "
" } }