New feature: pretzel with distractors

We just added a new feature requested by @Anurag_Katyal to pretzels: the ability to create distractors. Since we haven’t released a new version of DoenetML yet, you’ll need to change the version to 0.7dev to experience the new feature.

With the new version, you can make a pretzel like this:

<pretzel>

  <problem>
    <statement>1+1</statement>
    <givenAnswer>2</givenAnswer>
  </problem>

  <problem>
    <statement>2+2</statement>
    <answer>4</answer>
  </problem>

  <problem>
    <statement>3+3</statement>
    <answer>6</answer>
  </problem>

  <problem isDistractor>
    <statement>4+4</statement>
    <answer>9</answer>
  </problem>
  
</pretzel>

and now there’s a distractor of 9 (maybe in case someone thought 3+3=9).

To get a pretzel with distractors correct, a student needs to recognize that a question is a distractor and put an “X” in its box. One way a student could determine that there are distractors is that they correctly close the loop and get back to their original answer. Then, answers not in the loop must be distractors.

As always, any feedback on how pretzels work is appreciated.

Woohoo! Thanks Duane :slight_smile: