Split yesterday's post into today's

This commit is contained in:
Neale Pickett 2022-10-10 07:21:53 -06:00
parent d9709b8f8a
commit 7b6408a9c6
7 changed files with 193 additions and 28 deletions

View File

@ -1,6 +1,7 @@
--- ---
title: CLRG's Cheating Scandal title: CLRG's Cheating Scandal
date: 2022-10-04 date: 2022-10-04
tags: clrg
--- ---
$SPOUSE just stumbled across a PowerPoint file with a bunch of text messages, $SPOUSE just stumbled across a PowerPoint file with a bunch of text messages,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -1,10 +1,11 @@
--- ---
title: CLRG Scoring Analyzed title: CLRG Scoring Analyzed
date: 2022-10-09 date: 2022-10-09
tags:
- clrg
stylesheets: stylesheets:
- toys.css - toys.css
scripts: scripts:
- speculator.mjs
- scorecard.mjs - scorecard.mjs
--- ---
@ -55,33 +56,6 @@ If there's a 2-way, 3-way, or n-way tie,
all tied dancers get the average of the next 2, 3, or n award points, all tied dancers get the average of the next 2, 3, or n award points,
and the next 2, 3, or n rankings are skipped. and the next 2, 3, or n rankings are skipped.
### Award Points artifacts
One quirk of awards points is that for any given overall
score, there are only a handful of possible judge rankings that could have led
to it. That means you can make some guesses about how each judge ranked an
individual dancer, based on only their total award points.
Here's a handy calculator!
It (currently) doesn't consider the possibility of a tie.
<div class="scrolly">
<fieldset class="speculator">
<legend>CLRG Award Points Speculator</legend>
<div>
Points: <input name="points" type="number" min=41 max=10000 value=188>
<input name="adjudicators" type="hidden">
</div>
<table class="results">
<caption>Possible Rankings</caption>
<thead>
<tr class="warning"><th>Computing: this could take a while!</th></tr>
</thead>
<tbody></tbody>
</table>
</fieldset>
</div>
## What's with these values? ## What's with these values?

View File

@ -0,0 +1,122 @@
let awardPoints = [
100, // 1
75, // 2
65, // 3
60, // 4
56, // 5
53, // 6
50, // 7
47, // 8
45, // 9
43, // 10
41, // 11
39, // 12
38, // 13
37, // 14
36, // 15
35, // 16
34, // 17
33, // 18
32, // 19
31, // 20
30, // 21
29, // 22
28, // 23
27, // 24
26, // 25
25, // 26
24, // 27
23, // 28
22, // 29
21, // 30
20, // 31
19, // 32
18, // 33
17, // 34
16, // 35
15, // 36
14, // 37
13, // 38
12, // 39
11, // 40
10, // 41
9, // 42
8, // 43
7, // 44
6, // 45
5, // 46
4, // 47
3, // 48
2, // 49
1, // 50
0.75, // 51
0.65, // 52
0.60, // 53
0.56, // 54
0.53, // 55
0.50, // 56
0.47, // 57
0.45, // 58
0.43, // 59
0.41, // 60
0.39, // 61
0.38, // 62
0.37, // 63
0.36, // 64
0.35, // 65
0.34, // 66
0.33, // 67
0.32, // 68
0.31, // 69
0.30, // 70
0.29, // 71
0.28, // 72
0.27, // 73
0.26, // 74
0.25, // 75
0.24, // 76
0.23, // 77
0.22, // 78
0.21, // 79
0.20, // 80
0.19, // 81
0.18, // 82
0.17, // 83
0.16, // 84
0.15, // 85
0.14, // 86
0.13, // 87
0.12, // 88
0.11, // 89
0.10, // 90
0.09, // 91
0.08, // 92
0.07, // 93
0.06, // 94
0.05, // 95
0.04, // 96
0.03, // 97
0.02, // 98
0.01, // 99
0.00, // 100
]
function init() {
for (let tbody of document.querySelectorAll(".awardPoints tbody")) {
for (let i = 0; i < awardPoints.length; i++) {
let tr = tbody.appendChild(document.createElement("tr"))
tr.appendChild(document.createElement("td")).textContent = i + 1
tr.appendChild(document.createElement("td")).textContent = awardPoints[i].toFixed(2)
}
}
}
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", init)
} else {
init()
}
export {
awardPoints,
}

View File

@ -0,0 +1,35 @@
---
title: CLRG Award Points Artifacts
date: 2022-10-09
tags:
- clrg
stylesheets:
- toys.css
scripts:
- speculator.mjs
---
One quirk of awards points is that for any given overall
score, there are only a handful of possible judge rankings that could have led
to it. That means you can make some guesses about how each judge ranked an
individual dancer, based on only their total award points.
Here's a handy calculator!
It (currently) doesn't consider the possibility of a tie.
<div class="scrolly">
<fieldset class="speculator">
<legend>CLRG Award Points Speculator</legend>
<div>
Points: <input name="points" type="number" min=41 max=10000 value=188>
<input name="adjudicators" type="hidden">
</div>
<table class="results">
<caption>Possible Rankings</caption>
<thead>
<tr class="warning"><th>Computing: this could take a while!</th></tr>
</thead>
<tbody></tbody>
</table>
</fieldset>
</div>

View File

@ -0,0 +1,33 @@
.warning {
color: #e64;
display: none;
}
.warning.visible {
display: initial;
}
.scrolly {
max-width: 100%;
overflow-x: auto;
}
.awardPoints {
display: inline-block;
max-height: 60vh;
overflow-y: auto;
margin: 1em;
}
.awardPoints table {
margin: initial;
}
.awardPoints thead {
position: sticky;
top: 0;
}
.awardPoints tbody {
max-height: 60vh;
overflow-y: auto;
}
.awardPoints td {
text-align: right;
}