Current Assessment is now incremented in Assessment gen
Current Assessment is now incremented in Assessment gen, so now the same test doesn't loop over and over
This commit is contained in:
parent
3c10311a4d
commit
447ba58b7e
1 changed files with 3 additions and 1 deletions
|
@ -67,6 +67,7 @@ public class AssessmentGenerator {
|
|||
listOfAssessment.add(generatedAssessment);
|
||||
}
|
||||
AssessmentGenerator.listOfAssessment = listOfAssessment;
|
||||
goToNextQuestion();
|
||||
return listOfAssessment;
|
||||
}
|
||||
|
||||
|
@ -130,7 +131,7 @@ public class AssessmentGenerator {
|
|||
Question currentQuestion = listOfAssessment.get(currentAssessment);
|
||||
|
||||
if(currentQuestion instanceof MatchTheMeaningQuestion){
|
||||
MatchTheMeaningController.answer = (ArrayList<DictionaryEntry>) Arrays.asList(((MatchTheMeaningQuestion) currentQuestion).getCorrectAnswer());
|
||||
MatchTheMeaningController.answer = ((MatchTheMeaningQuestion) currentQuestion).getCorrectAnswer();
|
||||
ScreenSwitch.swap(ScreenSwitch.SceneEnum.matchMeaningScene);
|
||||
}else if (currentQuestion instanceof SixMeaningsQuestion){
|
||||
SixMeaningsController.allQuestions = ((SixMeaningsQuestion) currentQuestion).getCorrectAnswer();
|
||||
|
@ -143,6 +144,7 @@ public class AssessmentGenerator {
|
|||
System.err.println(currentQuestion);
|
||||
}
|
||||
|
||||
currentAssessment++;
|
||||
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue