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:
Start decreasing points awarded from attempt number X >= 2
Minimum points awarded Y with 0 < Y <= 1
Number of steps N until Y points are awarded
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?)
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?)