repl.it
@BenOfWillis/

testing

Python (with Turtle)

No description

fork
loading
main.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
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
import time
characterIsRandom=False

#1  Who are you
#2  Tell me about yourself
#3  What is the beast
#4  Do you like Ralph
#5  Tell me about Ralph
#6  Do you like Piggy
#7  Tell me about Piggy
#8  Do you like Simon
#9  Tell me about Simon
#10  What is your favorite food
#11  What is your favorite hobby/pastime/thing to do in your spare time
#12 What is your favorite colour
#13 Do you like to murder
#14 Are you single
#15 Who is the best leader
#16 Can you sing a c-sharp
#17  IS the conch important
#18 Why did you kill Simon
#19 Why did you kill Piggy
#20 How old are you
#21 What are your priorities in life
#22 Are you savage / barbaric
#23 Are the english best at everything


#         Made by Ben Willis

def AskJackQuestion():
  while True:
    if characterIsRandom==False:
      question=input("Ask a question for Jack: ").lower()
    else:
      question=input("Ask a question for ?????: ").lower()
    possibleInputsJack=[]


    #Answer_recognition_algorithem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    if question.find("who")!=-1 and question.find("you")!=-1:
      possibleInputsJack.append((1))

    if question.find("your")!=-1 and question.find("name")!=-1:
      possibleInputsJack.append((1))

    if question.find("about")!=-1 and( question.find("you")!=-1 or question.find("yourself")!=-1):
        possibleInputsJack.append((2))

    if question.find("beast")!=-1:
      possibleInputsJack.append(3)

    if question.find("like")!=-1 and question.find("ralph")!=-1:
      possibleInputsJack.append(4)
      possibleInputsJack.append(5)

    if question.find("like")!=-1 and question.find("piggy")!=-1:
      possibleInputsJack.append(6)
      possibleInputsJack.append(7)

    if question.find("like")!=-1 and question.find("simon")!=-1:
      possibleInputsJack.append(8)
      possibleInputsJack.append(9)

    if question.find("about")!=-1 and question.find("ralph")!=-1:
      possibleInputsJack.append(5)

    if question.find("about")!=-1 and question.find("piggy")!=-1:
      possibleInputsJack.append(7)

    if question.find("about")!=-1 and question.find("simon")!=-1:
      possibleInputsJack.append(9)

    if question.find("favorite")!=-1 and question.find("food")!=-1:
      possibleInputsJack.append(10)

    if question.find("favorite")!=-1 and question.find("colour")!=-1:
      possibleInputsJack.append(12)

    if question.find("hobby")!=-1 or question.find("pastime")!=-1 or question.find("spare time")!=-1:
      possibleInputsJack.append((11))

    if question.find("kill")!=-1 or question.find("murder")!=-1 or question.find("murderer")!=-1:
      possibleInputsJack.append((13))

    if question.find("you")!=-1 and question.find("single")!=-1:
      possibleInputsJack.append(14)

    if question.find("leader")!=-1:
      possibleInputsJack.append(15)

    if question.find("sing")!=-1 or question.find("choir")!=-1:
      possibleInputsJack.append(16)

    if question.find("conch")!=-1 or question.find("conc")!=-1:
      possibleInputsJack.append(17)

    if (question.find("kill")!=-1 or question.find("murder")!=-1) and question.find("simon")!=-1:
      possibleInputsJack.append(18)

    if (question.find("kill")!=-1 or question.find("murder")!=-1) and question.find("piggy")!=-1:
      possibleInputsJack.append(19)

    if question.find("old")!=-1 or question.find("age")!=-1:
      possibleInputsJack.append(20)

    if question.find("priorities")!=-1:
      possibleInputsJack.append(21)

    if question.find("savage")!=-1 or question.find("barbaric")!=-1:
      possibleInputsJack.append(22)

    if question.find("english")!=-1:
      possibleInputsJack.append(23)

    #Answer_queery_algorithem~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    finalInput=0
    list0=[]

    if len(possibleInputsJack)>1:
      a=0
      print ""
      correspondingAnswerInputs=[]
      print""
      print "What question did you ask?"
      time.sleep(.75)
      if possibleInputsJack.count(1)!=0:
        print""
        print"Type ",a," to ask: Who are you"
        a=a+1
        list0.append(1)
      if possibleInputsJack.count(2)!=0:
        print""
        print"Type ",a," to ask: Tell me about yourself"
        a=a+1
        list0.append(2)
      if possibleInputsJack.count(3)!=0:
        print""
        print"Type ",a," to ask about the beast"
        a=a+1
        list0.append(3)
      if possibleInputsJack.count(4)!=0:
        print""
        print"Type ",a," to ask: Do you like Ralph"
        a=a+1
        list0.append(4)
      if possibleInputsJack.count(5)!=0:
        print""
        print"Type ",a," to ask: Tell me about Ralph"
        a=a+1
        list0.append(5)
      if possibleInputsJack.count(6)!=0:
        print""
        print"Type ",a," to ask: Do you like Piggy "
        a=a+1
        list0.append(6)
      if possibleInputsJack.count(7)!=0:
        print""
        print"Type ",a," to ask: Tell me about Piggy"
        a=a+1
        list0.append(7)
      if possibleInputsJack.count(8)!=0:
        print""
        print"Type ",a," to ask: Do you like Simon"
        a=a+1
        list0.append(8)
      if possibleInputsJack.count(9)!=0:
        print""
        print"Type ",a," to ask: Tell me about simon"
        a=a+1
        list0.append(9)
      if possibleInputsJack.count(10)!=0:
        print""
        print"Type ",a," to ask: What is your favorite food"
        a=a+1
        list0.append(10)
      if possibleInputsJack.count(11)!=0:
        print""
        print"Type ",a," to ask: What is your hobby"
        a=a+1
        list0.append(11)
      if possibleInputsJack.count(12)!=0:
        print""
        print"Type ",a," to ask: What is your favorite colour"
        a=a+1
        list0.append(12)
      if possibleInputsJack.count(13)!=0:
        print""
        print"Type ",a," to ask: Do you like being a murderer"
        a=a+1
        list0.append(13)
      if possibleInputsJack.count(14)!=0:
        print""
        print"Type ",a," to ask: Are you single"
        a=a+1
        list0.append(14)
      if possibleInputsJack.count(15)!=0:
        print""
        print"Type ",a," to ask: Who is the best leader"
        a=a+1
        list0.append(15)
      if possibleInputsJack.count(16)!=0:
        print""
        print"Type ",a," to ask about singing and the choir"
        a=a+1
        list0.append(16)
      if possibleInputsJack.count(17)!=0:
        print""
        print"Type ",a," to ask about the conch"
        a=a+1
        list0.append(17)
      if possibleInputsJack.count(18)!=0:
        print""
        print"Type ",a," to ask: WHY DID YOU KILL SIMON"
        a=a+1
        list0.append(18)
      if possibleInputsJack.count(19)!=0:
        print""
        print"Type ",a," to ask: WHY DID PIGGY HAVE TO DIE"
        a=a+1
        list0.append(19)
      if possibleInputsJack.count(20)!=0:
        print""
        print"Type ",a," to ask: How old are you"
        a=a+1
        list0.append(20)
      if possibleInputsJack.count(21)!=0:
        print""
        print"Type ",a," to ask: What are your priorities in life"
        a=a+1
        list0.append(21)
      if possibleInputsJack.count(22)!=0:
        print""
        print"Type ",a," to ask: Are you savage/barbaric"
        a=a+1
        list0.append(22)
      if possibleInputsJack.count(23)!=0:
        print""
        print"Type ",a," to ask about being english"
        a=a+1
        list0.append(23)
      for i in range (3):
        print("")
      a=input("Type here: ")
      finalInput=list0[int(a)]
      break
    else:
      if len(possibleInputsJack)==1:  
        finalInput=possibleInputsJack[0]
        break
      else:
        print""
        print"OOPS! my software has failed! You asked something obsurd. Speak to Ben Willis for more help"
        print""
  #print(finalInput)


  #~~~~~~~~~Answer_moduals~~~~~~~~~
  if finalInput==1:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    if characterIsRandom==True:
      print"I am ////, your worst nightmare! I am the one true leader, so kneel down before me you pleb!"
    else:
      print"I am Jack, your worst nightmare! I am the one true leader,"
      time.sleep(1)
      print "so KNEEL DOWN BEFORE ME... you pleb"
  if finalInput==2:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"Hmmm..."
    time.sleep(1)
    print"Well, my name is Jack Merridew and I'm a perfectly innocent, patriotic school boy. I sometimes like to play with my army of hunters, but mainly I just stick to being a rutheless dictator."
    time.sleep(2.5)
    print""
    a=input("But what abuout you? Tell me something about your life!  (type here):")
    print""
    time.sleep(.75)
    print("Hahaha! Pathetic. What a lazy answer. You only wrote "+str(len(a))+" letters")
  if finalInput==3:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"The Beast? I don't care about it. It could be just a little snake for all I care! I remember I once gave it food!"
    time.sleep(2.5)
    print""
    print"After all, I'm not scared of ANYTHING! BECAUSE I'M BRITISH!"
  if finalInput==4:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"I like Mrs Exilby more than that bumbeling excuse for a moron!"
    time.sleep(1)
    print""
    print"I mean, COME ON! All he would ever do was call thoses cursed meetings and talk about that DAMMED FIRE! At least trying to hunt him was knid of fun"
  if finalInput==5:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"He's a self centered asshole who always trys to spoil my fun! At first he was chosen leader, although the voting system was obviously rigged: who in there right minds would actualy vote for that loser."
    time.sleep(2)
    print""
    print"He was a TERRIBLE hunter, and had even worse social skills. We all know that the real way to make friends is to start a dictatorship and revert back to savagery! FUN!"
  if finalInput==6:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"I LOVE PIGGY! HE IS INE OF MY CLOSEST FREINDS!"
    time.sleep(1)
    print""
    print"No. Piggy sucks "
  if finalInput==7:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"Piggy? I dont know that much about him. All he did was hang around with Ralph, every now and again getting hissy at me for something. He was runt of the group, he even refused to hunt!"
    time.sleep(2)
    print""
    a=input("What did you think of him? I presume you read the book:  (type here):")
    print""
    time.sleep(.75)
    print("Shame he had to die. But he was very anoying, to be fair!")
  if finalInput==8:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"Hm. I never realy payed much attention to Simon. But now that you mention him, I guess he was kind of likable: He was quite sensible..."
  if finalInput==9:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"Simon was a kid who trajicly passed away during an accident. He was hard working and a big asset to the team. Everyone felt bad after his death."
    time.sleep(2)
    print""
    print"Ok to be honest, his death is all that I remember him for. He was just... so... FORGETTABLE."
  if finalInput==10:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"The soals of the innocent."
  if finalInput==11:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"Usual stuff. Going to the cinema, hanging out with choir buddies, leading brutal dictatorships, reading books. All the boring suff."
  if finalInput==12:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"My favorite colour is BLOOD"
  if finalInput==13:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"Woh! EXTREMELY specicif question! I mean, why would I ever want to murder? I only murder if it benifits ME in any way. I'm not so cold blooded that I would do it for fun! Well, apart from one or two times in the past. Does murdering a homeless guy count?"
  if finalInput==14:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"No. I am in a very deep relationship with one of the many voices in my head. Don't act like youre not jealous."
  if finalInput==15:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"Johsef Stalin."
    time.sleep(1)
    print""
    print"Oh, you meant on the island? Me. Definitly me!"
  if finalInput==16:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"YES I CAN SING A C-SHARP! FIGHT ME!!!!!!!!!!!!"
  if finalInput==17:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"No."
    time.sleep(1.5)
    print""
    print"Oh, sorry. Did you want me to say something deep and full of political meaning? Sucks to that! I genuinly do not care about that large snail carcas."
  if finalInput==18:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"NoNoNoNoIdidNotKillSimonStopGivingMeAccusingLooks!! Simon's death was 100% an accident so there is no need to keep on talking about it!"
  if finalInput==19:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"I didn't kill him. That was someone else. Truthfully though, he was annoying and deserved to die."
  if finalInput==20:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"Old enough to sing a C-sharp like a big boy!"
  if finalInput==21:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"'MY PRIORITIES IN LIFE' what a stupid question! Try asking me about my hobbiies instead."
  if finalInput==22:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"It's only play pretend. Sure, I may be savage on the inside but I only show it on the outside when I'm playing or murdering."
  if finalInput==23:
    print""
    print""
    if characterIsRandom==False:
      print"            (~JACK MERRIDEW~)"
    else:
      print"            (~???????????~)"
    print""
    print"Am I the greatest boy to ever live?"
    time.sleep(1)
    print""
    print"The correct answer is YES, and so by extension, every british person is the best at everything. It's commen logic realy."
while True:
  AskJackQuestion()
  print""
  print ""
  print""
  input("Press Enter to continue: ")
  for i in range (40):
    print""
result
console
?