Skip to content

Instantly share code, notes, and snippets.

@hawksprite
Created May 14, 2014 23:36
Show Gist options
  • Save hawksprite/f720feb8a9348576c4af to your computer and use it in GitHub Desktop.
Save hawksprite/f720feb8a9348576c4af to your computer and use it in GitHub Desktop.
for (int i = 0; i < r.attemptCount.Length; i++) {
if (r.access [i] == 1) {
// Handle missed
if (r.attemptCount [i] <= 0) {
missed = true;
}
// Check for a score lower then given thresholds
if (r.topAssignmentScore [i] <= 79) {
completedThresh = false;
}
if (r.topAssignmentScore [i] <= 88) {
achievedThresh = false;
}
if (r.assessHistory [i].Length > 0) {
if (r.assessHistory [i] [0] <= 88) {
excellentThresh = false;
}
} else {
excellentThresh = false;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment