public LL_WordData GetRandomTestWordDataLL(WordFilters filters = null, bool useMaxJourneyData = false) { if (filters == null) { filters = new WordFilters(); } if (useMaxJourneyData) { VocabularyAi.LoadCurrentPlaySessionData(AppManager.I.Player.MaxJourneyPosition.ToString()); } if (giveWarningOnFake) { Debug.LogWarning("You are using fake data for testing. Make sure to test with real data too."); giveWarningOnFake = false; } var availableWords = VocabularyAi.SelectData( () => vocabularyHelper.GetAllWords(filters), new SelectionParameters(SelectionSeverity.AsManyAsPossible, getMaxData: true, useJourney: useMaxJourneyData) , true ); var data = availableWords.RandomSelectOne(); /*if (ConfigAI.verboseTeacher) * { * Debug.Log("Random test Word requested to teacher: " + data.ToString()); * }*/ return(BuildWordData_LL(data)); }
public QuestionBuilderParameters() { this.correctChoicesHistory = PackListHistory.RepeatWhenFull; this.wrongChoicesHistory = PackListHistory.RepeatWhenFull; this.useJourneyForCorrect = true; this.useJourneyForWrong = true; this.correctSeverity = SelectionSeverity.MayRepeatIfNotEnough; this.wrongSeverity = SelectionSeverity.MayRepeatIfNotEnough; this.letterEqualityStrictness = LetterEqualityStrictness.LetterOnly; this.letterFilters = new LetterFilters(); this.wordFilters = new WordFilters(); this.phraseFilters = new PhraseFilters(); this.sortPacksByDifficulty = true; }