-
Notifications
You must be signed in to change notification settings - Fork 32
/
exercises.py
46 lines (40 loc) · 1.39 KB
/
exercises.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# coding=utf-8
""" Mastery Models """
DO_ALL = "do_all"
NUM_CORRECT_IN_A_ROW_10 = "num_correct_in_a_row_10"
NUM_CORRECT_IN_A_ROW_2 = "num_correct_in_a_row_2"
NUM_CORRECT_IN_A_ROW_3 = "num_correct_in_a_row_3"
NUM_CORRECT_IN_A_ROW_5 = "num_correct_in_a_row_5"
SKILL_CHECK = "skill_check"
M_OF_N = "m_of_n"
QUIZ = "quiz"
MASTERY_MODELS = (
(DO_ALL, "Do all"),
(NUM_CORRECT_IN_A_ROW_2, "2 in a row"),
(NUM_CORRECT_IN_A_ROW_10, "10 in a row"),
(NUM_CORRECT_IN_A_ROW_3, "3 in a row"),
(NUM_CORRECT_IN_A_ROW_5, "5 in a row"),
(SKILL_CHECK, "Skill check"),
(M_OF_N, "M out of N"),
(QUIZ, "Quiz"),
)
IMG_PLACEHOLDER = "{☣ LOCALPATH}"
IMG_FORMAT = "${" + IMG_PLACEHOLDER + "}/{0}"
IMG_REGEX = r"\$\{☣ LOCALPATH\}\/(.+)"
CONTENT_STORAGE_PLACEHOLDER = "{☣ CONTENTSTORAGE}"
CONTENT_STORAGE_FORMAT = "${" + CONTENT_STORAGE_PLACEHOLDER + "}/{0}"
CONTENT_STORAGE_REGEX = r"\(\$\{☣ CONTENTSTORAGE\}\/(.+)\)"
GRAPHIE_DELIMITER = "$$$GRAPHIE_BREAK$$$"
""" Question Types """
INPUT_QUESTION = "input_question"
MULTIPLE_SELECTION = "multiple_selection"
SINGLE_SELECTION = "single_selection"
FREE_RESPONSE = "free_response"
PERSEUS_QUESTION = "perseus_question"
question_choices = (
(INPUT_QUESTION, "Input Question"),
(MULTIPLE_SELECTION, "Multiple Selection"),
(SINGLE_SELECTION, "Single Selection"),
(FREE_RESPONSE, "Free Response"),
(PERSEUS_QUESTION, "Perseus Question"),
)