-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitm.json
More file actions
213 lines (207 loc) · 4.85 KB
/
Copy pathgitm.json
File metadata and controls
213 lines (207 loc) · 4.85 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
let data = {
"responses": [
"I didn't know that"
]
};
let nodes = {
// Number guess
"n.pick" :
{
"context" : "number_guess",
"default" : "n.serious",
"greeting" : "I'm thinking of a number from one to ten. What's your guess?",
"phrases" : [
"Guess the number?",
"Do you have a guess?"
],
"exits" : {
"low_guess" : "n.low",
"high_guess" : "n.high",
"odd_even" : "n.oddeven"
}
},
"n.low" :
{
"context" : "number_guess",
"default" : "n.serious",
"greeting" : "Not bad, but the number is higher than that.",
"phrases" : [
"Still too low.",
"Higher..."
],
"exits" : {
"low_guess" : "n.low",
"high_guess" : "n.high",
"odd_even" : "n.oddeven"
}
},
"n.high" :
{
"context" : "number_guess",
"default" : "n.serious",
"greeting" : "Good guess! Too high, though. Guess a lower number.",
"phrases" : [
"Guess a little lower.",
"Still too high.",
"Lower."
],
"exits" : {
"low_guess" : "n.low",
"high_guess" : "n.high",
"odd_even" : "n.oddeven"
}
},
"n.oddeven" :
{
"context" : "number_guess",
"default" : "n.serious",
"greeting" : "Good question. The number is even! What's your guess?",
"phrases" : [
"Even.",
"It's even. Do you have a guess?"
],
"exits" : {
"low_guess" : "n.low",
"high_guess" : "n.high",
"odd_even" : "n.oddeven"
}
},
"n.serious" :
{
"context" : "number_guess",
"default" : "n.serious",
"greeting" : "This is just a number guessing game. I'm sure you're familiar with the idea.",
"phrases" : [
"I feel like you're not taking this seriously.",
"Do you have a guess or not?"
],
"exits" : {
"low_guess" : "n.low",
"high_guess" : "n.high",
"odd_even" : "n.oddeven"
}
},
// Color guess
"c.start" :
{
"context" : "color_guess",
"default" : "n.serious",
"greeting" : "You guessed the number!<br /> Now let's try something different. Guess what color I'm thinking of.",
"phrases" : [
"I feel like you're not taking this seriously.",
"Do you know your colors?",
"At least you're not still trying to guess a number"
],
"exits" : {
"guess_cooler" : "c.warm",
"too_earthy" : "c.earthy",
"close" : "c.purple",
"number" : "n.pick",
"low_guess" : "n.low",
"high_guess" : "n.high",
"odd_even" : "n.oddeven"
}
},
"c.earthy" :
{
"context" : "color_guess",
"default" : "n.serious",
"greeting" : "The color I'm thinking of is not an earth tone. Think more of the sky.",
"phrases" : [
"It's not so earthy.",
"It's a cool color, like the sky on a sunny day.",
"At least you're not still trying to guess a number"
],
"exits" : {
"guess_cooler" : "c.warm",
"too_earthy" : "c.earthy",
"close" : "c.purple",
"number" : "n.pick",
"low_guess" : "n.low",
"high_guess" : "n.high",
"odd_even" : "n.oddeven"
}
},
"c.warm" :
{
"context" : "color_guess",
"default" : "n.serious",
"greeting" : "Good guess, but the color I'm thinking of is a cooler color.",
"phrases" : [
"Think 'cool'.",
"That was a warm color.",
"At least you're not still trying to guess a number!"
],
"exits" : {
"guess_cooler" : "c.warm",
"too_earthy" : "c.earthy",
"close" : "c.purple",
"number" : "n.pick",
"low_guess" : "n.low",
"high_guess" : "n.high",
"odd_even" : "n.oddeven"
}
},
"c.purple" :
{
"context" : "color_guess",
"default" : "n.serious",
"greeting" : "You're very close!",
"phrases" : [
"You already guessed purple.",
"It's not a shade of purple.",
"At least you're not still trying to guess a number..."
],
"exits" : {
"guess_cooler" : "c.warm",
"too_earthy" : "c.earthy",
"close" : "c.purple",
"number" : "n.pick"
}
}
};
let contexts = {
"number_guess" :
{
"exit" : "6",
"sink" : [
"We've already done the number thing!",
"You already guessed the number.",
"You can play again, but the number is always 6."
],
"first_node" : "n.pick",
"next_context" : "color_guess"
},
"color_guess" :
{
"exit" : "blue",
"sink" : [
"The color was blue.",
"You already guessed the color.",
],
"first_node" : "c.start",
"next_context" : "end"
}
}
nodes.start = {
"greeting" : "This is a number guess game. Ready to play?",
"next_context" : "number_guess"
};
nodes.end = {
"greeting" : "You guessed the number and the color! Congratulations! Game over!"
};
// This is a hack. Leave it alone.
contexts.end = {
"first_node" : "end"
};
let synonyms = {
"low_guess" : [ "1", "2", "3", "4", "5", "one", "uno", "two", "three", "four", "five" ],
"6" : [ "six", "sex" ],
"high_guess" : [ "7", "8", "9", "10", "seven", "eight", "nine", "ten"],
"odd_even" : [ "odd", "even" ],
"start_over" : ["start gitm over", "reset gitm"],
"guess_cooler" : [ "orange", "yellow", "red" ],
"too_earthy" : [ "green", "brown" ],
"close" : [ "purple", "mauve", "violet", "grape" ],
"number" : [ "number" ]
};