Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question requiring at leat one correct (instead of all correct) #382

Open
blaiseli opened this issue Jun 6, 2020 · 0 comments
Open

Question requiring at leat one correct (instead of all correct) #382

blaiseli opened this issue Jun 6, 2020 · 0 comments

Comments

@blaiseli
Copy link

blaiseli commented Jun 6, 2020

I haven't seen this request, but maybe I didn't look carefully enough: I tried to make a question where several answers are considered correct, and the behaviour I obtained was that the only correct solution was to check all correct answers. My intention was that it would be considered correct if at least one of the correct answers was checked (and none of the wrong answers).

For instance:

question("Select at least one TRUE expression",
         answer("`2 < 4`", correct = TRUE, message = "`!FALSE` is also correct"),
         answer("`!FALSE`", correct = TRUE, message = "`2 < 4` is also correct"),
         answer("`TRUE & (2 < 1)`"),
         allow_retry = TRUE
         )

Selecting only one of the correct answers is considered wrong. What would be nice is an any_correct option that would result in the desired behaviour.

A related feature would be to allow multiple choice square check boxes even when only one answer is correct, in order to avoid giving the hint that only one answer is correct.

elmstedt added a commit to elmstedt/learnr that referenced this issue Sep 24, 2020
elmstedt added a commit to elmstedt/learnr that referenced this issue Sep 25, 2020
elmstedt added a commit to elmstedt/learnr that referenced this issue Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant