Skip to content

Commit

Permalink
feat: added chigazo_graham_quiz; edited quizzes.module.ts and quiz.yaml;
Browse files Browse the repository at this point in the history
  • Loading branch information
“A1-4U2T1NN” committed Oct 1, 2024
1 parent 68fe60f commit 7fb5542
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
34 changes: 18 additions & 16 deletions lesson_03/quiz/src/quizzes/chigazo_graham_quiz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,52 @@ export class ChigazoGrahamsQuiz implements QuizQuestionProvider {
}

makeQuizQuestions(): QuizQuestion[] {
return [ChigazoGrahamsQuiz.makeQuestion1(), ChigazoGrahamsQuiz.makeQuestion2, ChigazoGrahamsQuiz.makeQuestion3()];
return [
ChigazoGrahamsQuiz.makeQuestion0(),
ChigazoGrahamsQuiz.makeQuestion1(),
ChigazoGrahamsQuiz.makeQuestion2(),
];
}

private static makeQuestion1(): QuizQuestion {
private static makeQuestion0(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'What is the sign for Modulo?',
0,
'What is the sign for modulo?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, '^'],
[AnswerChoice.B, '*'],
[AnswerChoice.C,'%',],
[AnswerChoice.C, '%'],
[AnswerChoice.D, '//'],
]),
AnswerChoice.UNANSWERED,
); // Provide an answer. | AnswerChoice.C, '%'
}

private static makeQuestion2(): QuizQuestion {
return new QuizQuestion(
2,
'Who is are big three in hip hop?',
'A machine that automatically transforms input into output.',
private static makeQuestion1(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
1,
'Who are hip hops big three',
new Map<AnswerChoice, string>([
[AnswerChoice.A, 'Kendrick Lamar, J. Cole, and Drake'],
[AnswerChoice.B, 'Tupac, Biggie, and Nas'],
[AnswerChoice.C, 'Kanye West, Eminem, and Lil Wayne',],
[AnswerChoice.C, 'Kanye West, Eminem, and Lil Wayne'],
[AnswerChoice.D, 'K. Dot'],
]),
AnswerChoice.UNANSWERED,
); // Provide an answer. | AnswerChoice.D, 'K. Dot'
); // Provide an answer. | AnswerChoice.C, '%'
}

private static makeQuestion3(): QuizQuestion {
private static makeQuestion2(): QuizQuestion {
return new MultipleChoiceQuizQuestion(
3,
2,
'what is the answer to life, the universe, and everything else?',
new Map<AnswerChoice, string>([
[AnswerChoice.A, '42'],
[AnswerChoice.B, 'Jesus'],
[AnswerChoice.C,'N/A'],
[AnswerChoice.C, 'N/A'],
[AnswerChoice.D, 'Whatever you want it to be!'],
]),
AnswerChoice.UNANSWERED,
); // Provide an answer. | AnswerChoice.A, '42'
}

}
3 changes: 2 additions & 1 deletion lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
import { Module } from '@nestjs/common';
import { AnotherQuiz } from './another_quiz.js';
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';

export const Quizzes = Symbol.for('Quizzes');

Expand Down

0 comments on commit 7fb5542

Please sign in to comment.