diff --git a/lesson_03/quiz/quiz.yaml b/lesson_03/quiz/quiz.yaml index 5de7eb536..66fd12161 100644 --- a/lesson_03/quiz/quiz.yaml +++ b/lesson_03/quiz/quiz.yaml @@ -43,6 +43,10 @@ quiz: - $2y$10$QsN9VkjWORsKgZRiBT46VOUgc5HVnswKAT4uDbs7JYbTF7DdKbsw. - $2y$10$sqXEOL0L8o0kRyiAb.2s4u0RlBC2.LmOGDbGWXHj5IfBNwinkv2yq - $2y$10$HaWueXgrIzd7z8yf39HfVeTjjyr.Kgx0GFBqwCRSzW3zRSreN19yi + tommytran: + - $2y$10$6Mf9m8JXRHUyCgRNPn4nceimRZVOhtmsZbOGoFnI4ZJp..RluHmwy + - $2y$10$Xr6W53IVq52orDvf6.TQQuXeMGaysQdgAu1cm5DYi1NyCskG2ByPe + - $2y$10$x8BG/EcIbVohTU1s/thyc.TIzlfc8f/aVZaD4/1yMpcks2OWzKKMe zionbuchanan: - $2y$10$ufNCdP1efvioBYIih6K92uye33p5ckN/IrxfCvw4n7agHjN8aNfhe - $2y$10$Mb7LA1kqlDRWlN9jdBYvF.u1B8cmJqXWkrxQeMr/3ETRVOAzFlflG @@ -50,4 +54,4 @@ quiz: shawndunsmore: - $2y$10$Kpde4LAfDyEhgWezFoI5texc53Sge6QQs8y5hR8DA7zHfyK8It5LW - $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS - - $2y$10$T061IZuccoHb2XGjaICB/Olchf62DqrSDVIE0TE9Q9qidfLAL7sHS \ No newline at end of file + - $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 57768457b..123c00f62 100644 --- a/lesson_03/quiz/src/quizzes/quizzes.module.ts +++ b/lesson_03/quiz/src/quizzes/quizzes.module.ts @@ -9,6 +9,7 @@ import { JamesCapparellQuiz } from './james_capparell_quiz.js'; import { JosephCaballeroQuiz } from './joseph_caballero_quiz.js'; import { OyeyemiJimohQuiz } from './oyeyemi_jimoh_quiz.js'; import { ShawnDunsmoreQuiz } from './shawn_dunsmore_quiz.js'; +import { TommyTranQuiz } from './tommy.tran.quiz.js'; import { XavierCruzQuiz } from './xavier_cruz_quiz.js'; import { YafiahAbdullahQuiz } from './yafiah_abdullah_quiz.js'; import { ZionBuchananQuiz } from './zion_buchanan_quiz.js'; @@ -30,6 +31,7 @@ const QUIZ_PROVIDERS = [ AmiyahJonesQuiz, XavierCruzQuiz, ZionBuchananQuiz, + TommyTranQuiz, ]; @Module({ diff --git a/lesson_03/quiz/src/quizzes/tommy.tran.quiz.ts b/lesson_03/quiz/src/quizzes/tommy.tran.quiz.ts new file mode 100644 index 000000000..2b53e0b5b --- /dev/null +++ b/lesson_03/quiz/src/quizzes/tommy.tran.quiz.ts @@ -0,0 +1,62 @@ +import { + AnswerChoice, + MultipleChoiceQuizQuestion, + QuizQuestion, + QuizQuestionProvider, +} from 'codedifferently-instructional'; + +export class TommyTranQuiz implements QuizQuestionProvider { + getProviderName(): string { + return 'tommytran'; + } + + makeQuizQuestions(): QuizQuestion[] { + return [ + TommyTranQuiz.makeQuestion0(), + TommyTranQuiz.makeQuestion1(), + TommyTranQuiz.makeQuestion2(), + ]; + } + + private static makeQuestion0(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 0, + 'What is the capital city of Japan?', + new Map([ + [AnswerChoice.A, 'Seoul'], + [AnswerChoice.B, 'Tokyo'], + [AnswerChoice.C, 'Beijing'], + [AnswerChoice.D, 'Bangkok'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion1(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 1, + 'Which planet is known as the "Red Planet?', + new Map([ + [AnswerChoice.A, 'Venus'], + [AnswerChoice.B, 'Jupiter'], + [AnswerChoice.C, 'Mars'], + [AnswerChoice.D, 'Saturn'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } + + private static makeQuestion2(): QuizQuestion { + return new MultipleChoiceQuizQuestion( + 2, + 'Who wrote the play "Romeo and Juliet?', + new Map([ + [AnswerChoice.A, 'Charles Dickens'], + [AnswerChoice.B, 'William Shakespeare'], + [AnswerChoice.C, 'Jane Austen'], + [AnswerChoice.D, 'Mark Twain'], + ]), + AnswerChoice.UNANSWERED, + ); // Replace `UNANSWERED` with the correct answer. + } +}