ogd.games.JOWILDER package

Subpackages

Submodules

ogd.games.JOWILDER.JowilderLoader module

class ogd.games.JOWILDER.JowilderLoader.JowilderLoader(player_id: str, session_id: str, game_schema: GameSchema, mode: ExtractionMode, feature_overrides: List[str] | None)[source]

Bases: GeneratorLoader

ogd.games.JOWILDER.Jowilder_Enumerators module

ogd.games.JOWILDER.Jowilder_Enumerators.answer_to_question(ans, lvl)[source]
ogd.games.JOWILDER.Jowilder_Enumerators.enum_to_interactive_entry(enum: int) str[source]
ogd.games.JOWILDER.Jowilder_Enumerators.interactive_entry_to_char(entry_fqid) str[source]
ogd.games.JOWILDER.Jowilder_Enumerators.quiz_question_to_index(quiz_num: int, question_num: int) int[source]

See: https://github.com/fielddaylab/jo_wilder/blob/master/src/scenes/quiz.js

Each quiz is defined as a seperate dictionary, which means the index of each question is specific to its position in that dictionary, rather than its position in the overall question list.

The quiz_indexes dictionary contains the proper indexing for all questions in each of the 5 quizzes.

Returns:

The remapped index given a quiz and question number.

ogd.games.JOWILDER.Jowilder_Enumerators.quizn_to_index(quizn: int) int[source]

See: https://github.com/fielddaylab/jo_wilder/blob/master/src/scenes/quiz.js

For some reason there are 5 quizzes, but there is no quiz numbered 1.

Returns:

The correct quiz number for quizzes 2-5, or 0 for quiz 0.

ogd.games.JOWILDER.get_jowilder_all_items module

ogd.games.JOWILDER.get_jowilder_all_items.getListOfFiles(dirName)[source]
ogd.games.JOWILDER.get_jowilder_all_items.get_all_items(jowilder_path, outpath)[source]

Module contents