forked from autolab/Autolab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scoreboardHelp.html
executable file
·81 lines (72 loc) · 4.19 KB
/
scoreboardHelp.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<html>
<head>
<link rel="stylesheet" type="text/css" href="/assets/style.css">
<link rel="shortcut icon" href="/assets/autolab.ico" type="image/x-icon">
<title>Scoreboard Tutorial</title>
</head>
<body>
<div id="cmuHeader" width="100%">
<img src="/assets/cmu-header.gif" alt="Carnegie Mellon University" />
</div>
<div id="pageBody">
<div id="content">
<table width=80%>
<tr>
<td>
<h1>Default Scoreboard</h1>
<ul>
<li><i>Default scoreboard.</i> The default scoreboard displays the
total problem scores, followed by each individual problem score,
sorted in descending order by the total score.
</ul>
<h1>Custom Scoreboards </h1>
<ul>
<li><i>Custom scoreboards.</i> Autograded assignments have the option
of creating custom scoreboards. You can specify your own custom
scoreboard using a JSON <i>column specification</i>.
<li><i>Column specification.</i> The column spec consists of a "scoreboard"
object, which is an array of hashes, where each hash
describes a column. Each hash has a required "hdr:<i>colname</i>"
element.
<ul>
<li><b>Example:</b> Scoreboard with one column, called "Score":
<br>
<font color=blue><b><kbd>{"scoreboard": [ {"hdr":"Score"} ] }</kbd></b></font>
</ul>
<li><i>Sort order.</i> A custom scoreboard sorts the first three
columns, from left to right, in descending order. You can change the
default sort order for a particular column by adding an optional
"asc:1" element to its hash.
<ul>
<li><b>Example:</b> Scoreboard with two columns, "Score" and
"Ops", with "Score" sorted descending, and then "Ops" ascending:
<br>
<font color=blue><b><kbd>{"scoreboard": [ {"hdr":"Score"}, {"hdr":"Ops", "asc":1} ] }</kbd></b></font>
</ul>
</ul>
<h1>Custom Scoreboard Entries</h1>
<ul>
<li>The values for each row in a custom scoreboard come directly from
a "scoreboard" array object in the <i>autoresult string</i>
produced by the autograder.
<ul>
<li><b>Example:</b> Autoresult returning the score (97) for a single autograded
problem called "autograded", and a scoreboard entry with two
columns: the autograded score ("Score") and the number of operations
("Ops"):
<br>
<font color=blue><b><kbd>{"scores": {"autograded":97}, "scoreboard":[97, 128] }</kbd></b></font>
</ul>
</ul>
<i>Note to CMU instructors:</i> If you are configuring your scoreboard
by overloading functions in the lab.rb file, then the banner and
column specification on the "Admin scoreboard" page will be ignored.
</td>
</tr>
</table>
<div id="footer">
</div>
</div>
</div>
</body>
</html>