Skip to content

Commit 7fb5542

Browse files
author
“A1-4U2T1NN”
committed
feat: added chigazo_graham_quiz; edited quizzes.module.ts and quiz.yaml;
1 parent 68fe60f commit 7fb5542

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

lesson_03/quiz/src/quizzes/chigazo_graham_quiz.ts

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,50 +11,52 @@ export class ChigazoGrahamsQuiz implements QuizQuestionProvider {
1111
}
1212

1313
makeQuizQuestions(): QuizQuestion[] {
14-
return [ChigazoGrahamsQuiz.makeQuestion1(), ChigazoGrahamsQuiz.makeQuestion2, ChigazoGrahamsQuiz.makeQuestion3()];
14+
return [
15+
ChigazoGrahamsQuiz.makeQuestion0(),
16+
ChigazoGrahamsQuiz.makeQuestion1(),
17+
ChigazoGrahamsQuiz.makeQuestion2(),
18+
];
1519
}
1620

17-
private static makeQuestion1(): QuizQuestion {
21+
private static makeQuestion0(): QuizQuestion {
1822
return new MultipleChoiceQuizQuestion(
19-
1,
20-
'What is the sign for Modulo?',
23+
0,
24+
'What is the sign for modulo?',
2125
new Map<AnswerChoice, string>([
2226
[AnswerChoice.A, '^'],
2327
[AnswerChoice.B, '*'],
24-
[AnswerChoice.C,'%',],
28+
[AnswerChoice.C, '%'],
2529
[AnswerChoice.D, '//'],
2630
]),
2731
AnswerChoice.UNANSWERED,
2832
); // Provide an answer. | AnswerChoice.C, '%'
2933
}
3034

31-
private static makeQuestion2(): QuizQuestion {
32-
return new QuizQuestion(
33-
2,
34-
'Who is are big three in hip hop?',
35-
'A machine that automatically transforms input into output.',
35+
private static makeQuestion1(): QuizQuestion {
36+
return new MultipleChoiceQuizQuestion(
37+
1,
38+
'Who are hip hops big three',
3639
new Map<AnswerChoice, string>([
3740
[AnswerChoice.A, 'Kendrick Lamar, J. Cole, and Drake'],
3841
[AnswerChoice.B, 'Tupac, Biggie, and Nas'],
39-
[AnswerChoice.C, 'Kanye West, Eminem, and Lil Wayne',],
42+
[AnswerChoice.C, 'Kanye West, Eminem, and Lil Wayne'],
4043
[AnswerChoice.D, 'K. Dot'],
4144
]),
4245
AnswerChoice.UNANSWERED,
43-
); // Provide an answer. | AnswerChoice.D, 'K. Dot'
46+
); // Provide an answer. | AnswerChoice.C, '%'
4447
}
4548

46-
private static makeQuestion3(): QuizQuestion {
49+
private static makeQuestion2(): QuizQuestion {
4750
return new MultipleChoiceQuizQuestion(
48-
3,
51+
2,
4952
'what is the answer to life, the universe, and everything else?',
5053
new Map<AnswerChoice, string>([
5154
[AnswerChoice.A, '42'],
5255
[AnswerChoice.B, 'Jesus'],
53-
[AnswerChoice.C,'N/A'],
56+
[AnswerChoice.C, 'N/A'],
5457
[AnswerChoice.D, 'Whatever you want it to be!'],
5558
]),
5659
AnswerChoice.UNANSWERED,
5760
); // Provide an answer. | AnswerChoice.A, '42'
5861
}
59-
6062
}

lesson_03/quiz/src/quizzes/quizzes.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
1+
import { Module } from '@nestjs/common';
22
import { AnotherQuiz } from './another_quiz.js';
33
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
4+
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
45

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

0 commit comments

Comments
 (0)