feat: score single, multiple and self-check answers with configurable partial credit and penalty

This commit is contained in:
Jakub Zych
2026-10-02 14:05:41 +02:00
parent ed167d8450
commit 4d4da5dc14
3 changed files with 316 additions and 1 deletions

View File

@@ -1 +1,10 @@
{}
# Defaults for golem15.quizzes, merged under the plugin ID: the application
# reads these as golem15.quizzes.scoring.* and can override them in its own
# config.
scoring:
# Give partial credit on multiple-answer questions:
# (correct chosen - wrong chosen) / correct answers, floored at 0.
multiple_partial: false
# Fraction of a question's points subtracted for a wrong answer (0 to 1).
# An attempt's total never goes below 0.
penalty_wrong: 0