I was looking at the code for homework problems in the CAPA library and I saw this in the answer part...
"wgt" => $prob_val,
"tries" => $prob_try,
I can guess that this defines the 'weight' of a problem and the # of allowed tries. What I'm confused about is that the code does NOT seem to define $prob_val or $prob_try anywhere.
Is that passed in somehow to ALL webwork homework code by default?
No. Let's see if I can figure out what it does mean. I wrote the interpreter
that converted CAPA language problems to PG language somewhere
around 1997 or 1998 so it's been a while. Some of these problems have been
rewritten and cleaned up by Frank Wolfs and his crew. I wouldn't
recommend using them as models for new problems (or learning a foreign
language from Google translator :-) ).
...... some time later ........... ok -- here it is.
If you look in PG_CAPAmacros.pl where CAPA_ans() is defined you see that
these options which had meaning for CAPA problems are ignored when they
get translated into PG.
# explicitlty delete options which are meaningless to WeBWorK