Initial ScriptQuestion framework
[quizzer.git] / quiz.json
1 {
2         "version": "0.1",
3         "questions": [
4                 {
5                         "prompt": "What is your name?",
6                         "answer": "",
7                         "help": "This should be easy"
8                 },
9                 {
10                         "prompt": "What is your quest?",
11                         "answer": "To seek the Holy Grail",
12                         "help": "Think like a Pythonista",
13                         "dependencies": [
14                                 "What is your name?"
15                                 ]
16                 },
17                 {
18                         "class": "NormalizedStringQuestion",
19                         "prompt": "What is your favourite color?",
20                         "answer": "blue",
21                         "help": "Channel Sir Lancelot",
22                         "dependencies": [
23                                 "What is your quest?"
24                                 ]
25                 },
26                 {
27                         "prompt": "What is the capital of Assyria?",
28                         "answer": "I don't know that",
29                         "help": "Sir Robin didn't know it either",
30                         "dependencies": [
31                                 "What is your quest?"
32                                 ]
33                 },
34                 {
35                         "class": "ScriptQuestion",
36                         "interpreter": "sh",
37                         "prompt": "list all the files in the current directory",
38                         "answer": "ls",
39                         "setup": [
40                                 "touch file-1 file-2 file-3"
41                                 ],
42                         "help": "http://pubs.opengroup.org/onlinepubs/009696699/idx/utilities.html"
43                 }
44         ]
45 }