mitodl / mitx-grading-library

The MITx Grading Library, a python grading library for edX
https://edge.edx.org/courses/course-v1:MITx+grading-library+examples/
BSD 3-Clause "New" or "Revised" License
14 stars 9 forks source link

Implement options for grading based on attempt number #137

Closed jolyonb closed 5 years ago

jolyonb commented 6 years ago

We finally have the capability! I've finally gotten edX to merge this PR, which allows an author to request the attempt number be passed to the check function. It's straightforward to see if the attempt number kwarg arrived at the grader, and I think we can apply a simple scheme to decrease credit based on attempt number:

Then just perform a linear interpolation. A fancy feature would be to have a defaults file for this, so you can change the settings quickly over an entire course. (Maybe in the plugins folder?)