package eu.wiessenberg.quiz;

import eu.wiessenberg.KeyFactory;
import eu.wiessenberg.model.Note;
import eu.wiessenberg.quiz.questions.EnterKeysForAGivenAccidental;

import java.util.ArrayList;
import java.util.List;

public class QuestionFactory {
    public static List<Question> generateAllQuestions() {
        List<Question> allQuestions = new ArrayList<>();

        List<List<Note>> allKeys = KeyFactory.createAllMajorKeys();

        for (List<Note> key: allKeys) {
//            allQuestions.add(new GuessTheKeyBasedOnAccedentals(key));
//            allQuestions.add(new GuessTheAmountOfFlatsGivenAMajorKey(key));
//            allQuestions.add(new GuessTheAmountOfSharpsGivenAMajorKey(key));
//            allQuestions.add(new EnterAccidentalsForAGivenMajorKey(key));
        }

        for (Note note: KeyFactory.getAllUniqueNotesFromAllMajorKeys()) {
            allQuestions.add(new EnterKeysForAGivenAccidental(note));
        }
        return allQuestions;
    }
}

@@ -467,18 +467,16 @@
 Keys) %7B%0A
-//
         
@@ -529,34 +529,32 @@
 edentals(key));%0A
-//
             allQ
@@ -605,34 +605,32 @@
 MajorKey(key));%0A
-//
             allQ
@@ -694,10 +694,8 @@
 ));%0A
-//
     

enable all questions created so far