quiz scoring: add feature
quiz scoring: add feature: a task in smol-software-harbor (Harbor dataset). Some quiz questions accept several correct answers. Extend score() and grade() in src/quiz.php so a key entry may also be an array of accepted answers ( 'q5' = 'a', 'c' ): any of them scores 4. String keys keep working…
The task
Some quiz questions accept several correct answers. Extend `score()` and `grade()` in `src/quiz.php` so a key entry may also be an array of accepted answers (`'q5' => ['a', 'c']`): any of them scores 4. String keys keep working exactly as before. Add a check to `tests/run.php` and run `php tests/run.php`.
Part of efederici/smol-software-harbor.