Implemented a simple "match the sentence" exercise
This commit is contained in:
@@ -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;
|
||||
}[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user