-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrfg.py
311 lines (285 loc) · 6.8 KB
/
rfg.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
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
import random, datetime
random.seed(datetime.datetime.now())
#
# DATA
#
BIG_NUMBERS = [
"6 trillion",
"3.4 million",
"over 80,000",
"18,003",
"Graham's Number",
"a googol",
"a mole"
]
SMALL_NUMBERS = [
"8",
"sixteen",
"42 and a half",
"5",
"43"
]
TINY_NUMBERS = [
"one",
"2",
"three-quarters",
"four eighteenths",
"0.87"
]
NUMBERS = BIG_NUMBERS + SMALL_NUMBERS + TINY_NUMBERS
STAR_WARS_CHARACTERS = [
"Darth Jar-Jar",
"Nien Nunb",
"an extra",
"Ference the Rebel",
"Clone Trooper ID# 86753099"
]
WORLD_LEADERS = [
"Barack Obama",
"Mao Zedong",
"Moon Jae-In",
"Bennito Musselini",
"Nicolas Maduro",
"Sam Houston",
"Emperor Norton I",
"Angela Merkel",
"Xi Jin-Ping",
"Vladimir Putin",
"Donald Trump",
"Macron",
"Kim Jong-Un",
"Kim Jong-Il",
"Jeremy",
"Justin Trudeau",
"Henrique Peña Nieto",
]
PEOPLE = [
"Eddie Vedder",
"Ta-Nehisi Coates",
"Honey Boo-Boo",
"Masahiro Sakurai",
"Shigeru Miyamoto",
"Sam Ferraro",
"the creator of Lindor chocolates",
"your neighborhood gardener",
"the Ghost of Christmas Past",
"Peter Gabriel",
"Elon Musk",
"David Bowie",
"Billy Joel's second wife",
"my dentist",
"Carl",
"that kid from third grade",
"that guy, you know the one --",
"your mother",
"Amanuel"
] + STAR_WARS_CHARACTERS + WORLD_LEADERS
COUNTRIES = [
"China",
"America",
"Sudan",
"what's left of Syria",
"Suriname",
"the country formally known as Hawaii",
"Neo Hawaii",
"Canada",
"Brazil",
"Equador",
"Uruguay",
"Tanzania",
"Malaysia",
"Isle of Mann",
"Iceland",
"Sandwich Islands",
"Montserrat",
"the U.K.",
"Djibouti",
"Italy",
"Croatia",
"South Africa",
"Lesotho",
"Japan",
"Australia",
"Papua New Guinea"
]
CITIES = [
"Albequerque",
"Baltimore",
"Boring",
"Washington D.C.",
"Bishop's Head",
"Accident",
"Taylor's Island",
"Paris, Texas",
"Paris",
"Paris, France",
"Earth, Texas",
"Atlanta",
"Tulsa"
]
PLACES = [
"your bedroom",
"the inn",
"Yas Island",
"your local Dunkin Donuts",
"Fantasylandia",
"the place that Ferraro comes from",
"the place down the street",
"the place next door",
"the site of the Titanic",
"there"
] + CITIES
OBSCURE_ANIMALS = [
"Pink Fairy Armadillo",
"Griffin",
"Chimaera",
"Tardigrade",
"Trilobyte",
"White Rhino",
"Quagga",
"Axolotl",
"Wallaby",
"Echidna",
]
ANIMALS = [
"deer",
"bear",
"wolf",
"goldfish",
"your pet dog",
"aardvark",
"dwarf",
"panda",
"human",
"tiger",
"eagle",
"lion",
"toad",
"lizard",
"bearded dragon",
"hamster",
"cat",
"gerbil",
"iguana",
"goose",
"duck",
"pig",
"cow",
"Cow",
"cattle",
"yellow bellied swallow",
"gorile",
"gorilla",
"your neighbor",
"koala"
] + OBSCURE_ANIMALS
DISEASES = [
"Ebola",
"Malaria",
"Mad Cow Disease",
"Common Cold",
"the Flu",
"strep throat",
"Tuberculosis",
"Cancer",
"smallpox"
]
HOBBIES = [
"bowling",
"fishing",
"programming small universe-destroying nanobots",
"recreating entire episodes of Phineas and Ferb frame-by-frame in live action",
"drumming",
"fly-fishing",
"shoemaking",
"creating panic in subreddits",
"marathoning Shrek",
"barking at doors",
"crab-walking across the USA",
"crying themselves to sleep",
"breaking Nicholas",
"spending your significant other's life savings"
]
MATERIALS = [
"wood",
"bone",
"glass",
"human flesh",
"fabric",
"flourescent toothpaste",
"carbon nanotubes",
"Vantablack",
"invisible scum",
"chemically rearranged ivory"
]
IDEAS = [
"We should put Pluto in a tractor beam so we can be better friends!",
"How much are the Chicken McNuggets?",
"Why not?",
"PS/2 is the superior keyboard interface!",
"You're wrong because of that.",
"Wait, which way was the bank? My map happened to spontaneously vaporize.",
"Dang it.",
"I'm a dwarf!"
]
MAP = {
"bn" : BIG_NUMBERS,
"sn" : SMALL_NUMBERS,
"tn" : TINY_NUMBERS,
"n" : NUMBERS,
"wl" : WORLD_LEADERS,
"p" : PEOPLE,
"swc" : STAR_WARS_CHARACTERS,
"cn" : COUNTRIES,
"ct" : CITIES,
"pl" : PLACES,
"oa" : OBSCURE_ANIMALS,
"a" : ANIMALS,
"ds" : DISEASES,
"hb" : HOBBIES,
"mat" : MATERIALS,
"idea" : IDEAS,
}
QUESTIONS = [
"The Native Americans were here for [bn] years before us!",
"The average tree is [sn] meters tall.",
#"Nicholas is named Gus.",
"The average digeridoo is supposed to played by [sn] people at once.",
"In the newest STAR WARS movie, [swc] kills [swc] in the climactic scene towards the end of the movie!",
"[p] once ate a healthy meal in [pl].",
"There is a one in a [bn] chance to see a flying [oa] in your lifetime. Good Luck!",
"There is a one in a [bn] chance each year that an [a] forces a [oa] out of their natural habitat.",
"[n] [a]s are forced out of their natural habitat each year.",
"George Lucas recently had the idea to digitally replace [swc] with [p] in STAR WARS: Episode IV.",
"[wl] implied in an interview that [ct] would be an ideal nuclear target. Residents agree.",
"[wl] has a [tn] percent chance to spontaneously combust in the next [sn] days.",
"In a recent behind-the-scenes interview, George Lucas revealed that [swc] is based off of [p]!",
"Newest census reveals that in [ct] only [tn] percent of the population are permanent residents!",
"After [wl] snapped at [wl], in both [ct] and [ct] tensions have been high. War has been discussed.",
"[tn] percent of scientists, including [p] are working on curing [ds] each year. They haven't done anything yet.",
"Recently, a movement has gained traction for [pl] to secede from the European Union.",
"The oldest [oa] is [tn] years old.",
"Recently, [wl] has taken up [hb].",
"The national sport of [cn] is [hb].",
"Each year, more and more people consider [hb] over talking to their parents.",
"[hb] has recently been recognized as an Olympic sport. It is reported that [p] will participate.",
"Did you know? There is a church in [cn] made out of [mat]!",
"BREAKING NEWS: The chance that there is [mat] on Mars has raised by [sn] percent, according to probe. Scientists scrambling to find answers.",
"Word's been going around town that [wl] is having an affair with [p]. They're trying to keep it hushed up.",
"[ct] has recently been found to be sitting on top of a [mat] mine! In fact, [cn] is supposed to be full of it.",
"The latest film, \"[p] and [p] in [cn]: Can they Escape?\" has received adverse reviews from fans. Critics aren't sure what to think.",
"By the time the next solar eclipse happens, the [a] species is expected to have gone extinct.",
"[p] was found writing graffiti on a billboard in [ct]. His graffiti read, \"[idea]\" People aren't sure whether to remove it, as it seems like it could be a valuable addition to the area."
]
#
# PROCESSING
#
for i in range(20):
question = random.choice(QUESTIONS)
for key in MAP:
actualKey = "[" + key + "]"
while actualKey in question:
item = random.choice(MAP[key])
question = question.replace(actualKey, item, 1)
question = question[0].upper() + question[1:]
print(question)