WeBWorK Main Forum

finding the max number of allowed attempts in a problem

finding the max number of allowed attempts in a problem

by Joseph Maher -
Number of replies: 1

$main::numOfAttempts gives me the number of attempts the student has made on the problem - is there an easy way of finding the maximum allowed number of attempts? (I'm trying to do this for just in time problems if this makes any difference...)


Joseph

In reply to Joseph Maher

Re: finding the max number of allowed attempts in a problem

by Joseph Maher -

I just added an extra var

$envir{maxAttempts}         = $problem->max_attempts;

in webwork2/lib/WeBWorK/PG.pm


Joseph