progress
Returns the grade reached with earned points per category and what the next grade requires. Returns null for invalid rules, unknown styles, and missing O1 earned categories. Total-style deficits above Int.MAX_VALUE are capped at that value.
Samples
val grading = CourseConfig.Grading(
style = CourseConfig.Grading.TOTAL,
points = linkedMapOf(
"pass" to mapOf("total" to 50),
"excellent" to mapOf("total" to 90),
),
)
grading.validate()
return grading.progress(mapOf("exercises" to 40, "project" to 20))Content copied to clipboard