RunestoneInteractive / RunestoneComponents

Packaging of the Runestone tools for publishing educational materials using github pages
http://runestoneinteractive.org
Other
101 stars 225 forks source link

Add grading logs for horizontal Parsons (micro Parsons) problems. #1381

Closed amy21206 closed 1 year ago

amy21206 commented 1 year ago

1. Added grading event for hparsons directive (micro Parsons problems): see issue RunestoneInteractive/rs#23

{
    event: "hparsonsAnswer",
    div_id: "hparsons_test", // div_id,
    act: // json string of the following content
    "{
        scheme: "block", // "block" for block-based grading, "execution" for execution-based grading (unit test)
        correct: "T", // "T" for correct, "F" for incorrect (same as Parsons directive)
        answer: ["block 1", "block 2"], // List of blocks in student answer; no hash was used for horizontal Parsons since each block is relatively short
        percent: 0.8, // Percentage of correction. For block-based (adapted from the percent grading for vertical Parsons problems): (length of longest increasing sequence/length of answer)*0.8 + (min(length of student answer, length of correct answer) / max (length of student answer, length of correct answer) * 0.2. For execution-based: Percent of correct unit tests.
    }"
}

Other logs are still under the event name "hparsons".

2. Use the micro parsons element as a separate dependency.