|
|
|
|
@ -4,11 +4,13 @@ import com.ybw.mathapp.entity.QuestionWithOptions;
|
|
|
|
|
import com.ybw.mathapp.service.JuniorHighGenerator;
|
|
|
|
|
import com.ybw.mathapp.service.MultipleChoiceGenerator;
|
|
|
|
|
import com.ybw.mathapp.service.PrimarySchoolGenerator;
|
|
|
|
|
import com.ybw.mathapp.service.SeniorHighGenerator;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
public class Main {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
// 生成小学选择题
|
|
|
|
|
|
|
|
|
|
System.out.println("--- Primary School MCQs ---");
|
|
|
|
|
PrimarySchoolGenerator primaryGen = new PrimarySchoolGenerator();
|
|
|
|
|
MultipleChoiceGenerator primaryMC = new MultipleChoiceGenerator(primaryGen, "小学"); // 传入级别
|
|
|
|
|
@ -21,16 +23,15 @@ public class Main {
|
|
|
|
|
MultipleChoiceGenerator juniorMC = new MultipleChoiceGenerator(juniorGen, "初中"); // 传入级别
|
|
|
|
|
List<QuestionWithOptions> juniorMCQs = juniorMC.generateMultipleChoiceQuestions(10);
|
|
|
|
|
juniorMCQs.forEach(q -> System.out.println(q + "\n"));
|
|
|
|
|
|
|
|
|
|
System.out.println();
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
// 生成高中选择题
|
|
|
|
|
System.out.println("--- Senior High MCQs ---");
|
|
|
|
|
SeniorHighGenerator seniorGen = new SeniorHighGenerator();
|
|
|
|
|
MultipleChoiceGenerator seniorMC = new MultipleChoiceGenerator(seniorGen, "高中"); // 传入级别
|
|
|
|
|
List<QuestionWithOptions> seniorMCQs = seniorMC.generateMultipleChoiceQuestions(2, 4);
|
|
|
|
|
List<QuestionWithOptions> seniorMCQs = seniorMC.generateMultipleChoiceQuestions(10);
|
|
|
|
|
seniorMCQs.forEach(q -> System.out.println(q + "\n"));
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|