I am trying to create a draggableProof problem and I am only in the beginning stages. I thought I would start with the wiki example provided on the MAA site:
http://webwork.maa.org/wiki/DraggableProofs#.WarkrvnfqUl
But running this example has the following error statement:
PG warning messages
---- main (eval 4440) 464 ------Error in NAMED_ANSWER_RULE_EXTENSION: every call to this subroutine needs to have $options{answer_group_name} defined. Answer blank name: AnSwEr0001-src
While the example problem does execute and will flag incorrect and correct responses accordingly, there is a disconcerting duplication of phrase statements for each selection made.
Could you please let me know what I am missing before I try to edit this example problem any further?
Also I am assuming that because of the format of these drag and drop statements that there is no comparable PGML equivalent for draggable statements?
Thanks for any help, Tim
# DESCRIPTION Draggable Proof Experimentation
# WeBWorK problem written by TimPayer <tsp1@humboldt.edu>
# ENDDESCRIPTION
## DBsubject(Probability)
## DBchapter(Random variables)
## DBsection(Expectation)
## Institution(Humboldt State University)
## Author(Tim Payer)
## KEYWORDS(probability, translate, notation)
DOCUMENT();
loadMacros(
"PGstandard.pl",
"MathObjects.pl",
"parserPopUp.pl",
"PGML.pl",
"unionTables.pl",
"niceTables.pl",
"PGcourse.pl",
"draggableProof.pl",
);
# install_weighted_grader();
# "weightedGrader.pl"
TEXT(beginproblem());
$CorrectProof = DraggableProof([
"Jason Aubrey",
"Someone better than Jason but less than everyone else",
"John Travis"
],
[
"Don't complain about it",
"\(x^2\)",
"a third chance for an error"
],
SourceLabel => "Choose from these",
TargetLabel => "Place the people in order of increasing usefulness.",
);
Context()->texStrings;
#######################################
#### Begin Problem...
BEGIN_TEXT
Select \{ $CorrectProof->numNeeded \} of the following.
$PAR
\{ $CorrectProof->Print \}
END_TEXT
Context()->normalStrings;
# Answer Evaluation
ANS($CorrectProof->cmp);
ENDDOCUMENT();