Skip to content

Commit 440153f

Browse files
authored
[Feature:Autograding] update left-right seating gradeable (Submitty#4466)
* non router works * added port ranges * fixes * update left right notebook gradeable * update
1 parent 4e7bd9d commit 440153f

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

bin/calculate_extensions.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,18 @@ int main(int argc, char* argv[]) {
139139
usage(argv[0]);
140140
}
141141

142-
std::cout << " on this date " << year << " " << month << " " << day <<std::endl;
142+
std::cout << "Calculating extension earned by this date: " << year << " " << month << " " << day <<std::endl;
143143

144144
int cutoff = atoi(argv[5]);
145145
assert (cutoff > 0 && cutoff < 100);
146146

147147

148-
std::cout << "cutoff is " << cutoff << std::endl;
148+
std::cout << "Cutoff is: " << cutoff << std::endl;
149+
150+
std::cout << "Testcases: ";
151+
for (unsigned int i = 0; i < testcases.size(); i++) { std::cout << " " << testcases[i]; }
152+
std::cout << std::endl;
149153

150-
std::cout << "testcases: ";
151-
for (unsigned int i = 0; i < testcases.size(); i++) { std::cout << " " << testcases[i] << std::endl; }
152154

153155
std::map<std::string,std::map<int,std::pair<int,int> > > data;
154156

@@ -209,7 +211,7 @@ int main(int argc, char* argv[]) {
209211
int version_int = atoi(version.c_str());
210212
assert (version_int >= 1);
211213
data[username][version_int] = std::make_pair(days_diff,points);
212-
214+
//std::cout << "thing "<< username << " " << days_diff << " " << points << std::endl;
213215
}
214216
}
215217

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
{
2-
"assignment_message" : "To better accomodate students for the upcoming exam, please let us know if you are left-handed or right-handed. \nWe will use this information to make the seating assignments.",
2+
"hide_submitted_files" : true,
3+
"hide_version_and_test_details" : true,
4+
5+
"assignment_message" : "To better accomodate students for the tests and final exam, please let us know if you are left-handed or right-handed. \nWe will use this information to make the seating assignments.",
36
"autograding": {
47
"submission_to_validation" : [ "left_right.txt" ],
58
"work_to_details" : [ "left_right.txt" ]
69
},
710
"notebook": [
811
{
9-
"markdown_string": "Write \"left-handed\" or \"right-handed\":",
12+
"markdown_string": "Are you left-handed or right-handed?",
1013
"type": "markdown"
1114
},
1215
{
13-
"filename": "left_right.txt",
14-
"type": "short_answer"
16+
"type" : "multiple_choice",
17+
"choices" : [
18+
{"value":"left-handed", "description":"left-handed" },
19+
{"value":"right-handed", "description":"right-handed" }
20+
],
21+
"filename": "left_right.txt"
1522
}
1623
],
1724
"testcases": [
18-
{
19-
"type" : "FileCheck",
20-
"title" : "Review",
21-
"actual_file" : "left_right.txt",
22-
"points" : 0
23-
}
2425
]
2526
}

0 commit comments

Comments
 (0)