Skip to content

Ezra04 #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lesson_03/quiz/quiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ quiz:
anotherone:
- $2y$10$8eHSzy3aCu4Ry3LzO9nWCeGpofSxsNVbnF.wCfn3ZADwQ6MEtN/KK
- $2y$10$dGB0CGv7.XQC5OqfyY6iXOiJsdVyxU3ve5YE0gt4m2I8P8H13lNXa
TravelQuiz:
- $2y$10$fisFjMsmMwzlj3.PELyBNeupdruYROU00dwq296pg0VfHo05SSkta
- $2y$10$.Z44VoTaxQSdPEx7RatO6OVCw1ff6ohS0kZnCrHEcFnElIgkfjP0u
- $2y$10$nCm/E52FKO7DRo4XbpR2vu.HTyAzsDNNZr2dDfYJyblY1oLuGpnPO
computerparts:
- $2y$10$7TUXmYaJlWnRZTzYR..CsefgVcOZJMGt7ctxyAf.G3obBBFEAB342
- $2y$10$0ghuTDegle177q8VjCgQ2OhManKjotYXrcDT3SLyUF8KvI152Wd0.
Expand All @@ -17,4 +21,4 @@ quiz:
rmill:
- $2y$10$FquR69q7W4E68TX/SNCB7u8Ri0DOFRDqsUPdGfuyIBjZJRVFkNI.6
- $2y$10$FSWRA7hulVpyVxd8s67Nxuq/1cdmviW24qqoUbqihBf79cR.w9yly
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6
- $2y$10$Qy1IsNsfuJvA384ypL/72uWubUuNbMRp4LD6j/LM0RIH66D/HIjF6
60 changes: 60 additions & 0 deletions lesson_03/quiz/src/quizzes/ezra_quiz.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import {
AnswerChoice,
MultipleChoiceQuizQuestion,
} from 'codedifferently-instructional';

export class EzraQuiz {
getProviderName() {
return 'TravelQuiz';
}

makeQuizQuestions() {
return [
EzraQuiz.makeQuestion0(),
EzraQuiz.makeQuestion1(),
EzraQuiz.makeQuestion2(),
];
}

static makeQuestion0() {
return new MultipleChoiceQuizQuestion(
0,
'What is the most played video game in the world?',
new Map([
[AnswerChoice.A, 'GTA V'],
[AnswerChoice.B, 'Call of Duty'],
[AnswerChoice.C, 'World of Warcraft'],
[AnswerChoice.D, 'MineCraft'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

static makeQuestion1() {
return new MultipleChoiceQuizQuestion(
1,
'What is the top tourist destination in the world?',
new Map([
[AnswerChoice.A, 'China'],
[AnswerChoice.B, 'France'],
[AnswerChoice.C, 'Italy'],
[AnswerChoice.D, 'Brazil'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}

static makeQuestion2() {
return new MultipleChoiceQuizQuestion(
2,
'What country has the largest number of ocean borders?',
new Map([
[AnswerChoice.A, 'Canada'],
[AnswerChoice.B, 'India'],
[AnswerChoice.C, 'Australia'],
[AnswerChoice.D, 'United Kingdom'],
]),
AnswerChoice.UNANSWERED,
); // Replace `UNANSWERED` with the correct answer.
}
}
3 changes: 3 additions & 0 deletions lesson_03/quiz/src/quizzes/quizzes.module.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
import { Module } from '@nestjs/common';
import { AnotherQuiz } from './another_quiz.js';
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
import { EzraQuiz } from './ezra_quiz.js';
import { Jbeyquiz } from './jbeyquiz.js';
import { MercedesMathewsQuiz } from './mercedes_mathews_quiz.js';
import { RasheedMillerQuiz } from './rasheed_miller_quiz.js';

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

// Add your quiz provider here.

const QUIZ_PROVIDERS = [
AnthonyMaysQuiz,
AnotherQuiz,
MercedesMathewsQuiz,
Jbeyquiz,
EzraQuiz,
RasheedMillerQuiz,
];

Expand Down
1 change: 1 addition & 0 deletions source/code-differently-25-q1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Submodule code-differently-25-q1 added at 904620
Loading