Implemented a simple "match the sentence" exercise

This commit is contained in:
Tiago Ribeiro
2023-03-23 16:22:48 +00:00
parent 740346f696
commit 3d74bf9bf1
7 changed files with 327 additions and 27 deletions

View File

@@ -8,7 +8,7 @@ export interface ReadingExam {
exercises: Exercise[];
}
type Exercise = FillBlanksExercise;
type Exercise = FillBlanksExercise | MatchSentencesExercise;
export interface FillBlanksExercise {
prompt: string; // *EXAMPLE: "Complete the summary below. Click a blank to select the corresponding word for it."
@@ -21,3 +21,19 @@ export interface FillBlanksExercise {
solution: string; // *EXAMPLE: "preserve"
}[];
}
export interface MatchSentencesExercise {
type: string;
prompt: string;
sentences: {
id: string;
sentence: string;
solution: string;
color: string;
}[];
allowRepetition: boolean;
options: {
id: string;
sentence: string;
}[];
}