diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 0a4481798..cee6a418d 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -11,7 +11,7 @@ quiz: - $2y$10$9D.oRC8h/PD/10NMSR6MMOzjVAJKm.vfw4te8Rxgw1M1.0Q9x8pjK - $2y$10$ypLhtfxJikRhLaQdW0Y8GOEqO/X1uoBD8w.kSSSUPggBa9wHLkw0i - $2y$10$cYuji5D0xOEFAV2fyMaJAuaODeWEwIYu.X3089qnojdx3nQljil5G - dasiaenglish: + dasiaenglish: - $2y$10$ANtdDzA0GAqn/QeExPO/Du8LgHUwznRLxpv0W0ib2seYk23BZowOC - $2y$10$6vAkOUmpPrUtWrh010f8e.A4M9kEzuzCrQ8ghWI9hQSEsZeGHpQ9W - $2y$10$YYTJf2QW.BJST9EUB7NZneVpNkOywIfhsWRpxIsPBg/oTmgqoYWse @@ -40,3 +40,7 @@ quiz: - $2y$10$sqXEOL0L8o0kRyiAb.2s4u0RlBC2.LmOGDbGWXHj5IfBNwinkv2yq - $2y$10$HaWueXgrIzd7z8yf39HfVeTjjyr.Kgx0GFBqwCRSzW3zRSreN19yi + shawndunsmore: + - $2y$10$Kpde4LAfDyEhgWezFoI5texc53Sge6QQs8y5hR8DA7zHfyK8It5LW + - $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS + - $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS diff --git a/lesson_03/quiz/src/quizzes/quizzes.module.ts b/lesson_03/quiz/src/quizzes/quizzes.module.ts index 2ecba2f90..75a2d40d9 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -7,6 +7,7 @@ import { DasiaEnglishQuiz } from './dasia_english_quiz.js'; import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js'; import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js'; import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js'; +import { ShawnDunsmoreQuiz } from './shawn_dunsmore_quiz.js'; import { YafiahAbdullahQuiz } from './yafiah_abdullah_quiz.js'; import { AmiyahJonesQuiz } from './amiyah_jones_quiz.js'; @@ -20,6 +21,7 @@ const QUIZ_PROVIDERS = [ JosephCaballeroQuiz, AngelicaCQuiz, OyeyemiJimohQuiz, + ShawnDunsmoreQuiz, DasiaEnglishQuiz, ChigazoGrahamsQuiz, AmiyahJonesQuiz, diff --git a/lesson_03/quiz/src/quizzes/shawn_dunsmore_quiz.ts b/lesson_03/quiz/src/quizzes/shawn_dunsmore_quiz.ts new file mode 100644 index 000000000..ce6571cdf --- /dev/null +++ b/lesson_03/quiz/src/quizzes/shawn_dunsmore_quiz.ts @@ -0,0 +1,62 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class ShawnDunsmoreQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'shawndunsmore'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + ShawnDunsmoreQuiz.makeQuestion0(), + ShawnDunsmoreQuiz.makeQuestion1(), + ShawnDunsmoreQuiz.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'What is Davids Favorite Color?', + new Map([ + [AnswerChoice.A, 'Idc'], + [AnswerChoice.B, 'Blue'], + [AnswerChoice.C, 'Black'], + [AnswerChoice.D, 'Whatever you think it is.'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'What is Jordan famous for?', + new Map([ + [AnswerChoice.A, 'Photography'], + [AnswerChoice.B, 'Being short'], + [AnswerChoice.C, 'Pickleball'], + [AnswerChoice.D, 'Trampoline Dunking.'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'How mnay states are there?', + new Map([ + [AnswerChoice.A, '50'], + [AnswerChoice.B, '35'], + [AnswerChoice.C, '20'], + [AnswerChoice.D, '65'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } +}