-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathThe_Matrix.rb
More file actions
938 lines (893 loc) · 73.2 KB
/
The_Matrix.rb
File metadata and controls
938 lines (893 loc) · 73.2 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
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
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
#This is a helper method that will work only for this program
#it takes a string and returns it enhanced
def enhanced_strings(string)
case string
when "The Matrix"
puts " ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄
▐░░░░░░░░░░░▌▐░▌ ▐░▌▐░░░░░░░░░░░▌ ▐░░▌ ▐░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌
▀▀▀▀█░█▀▀▀▀ ▐░▌ ▐░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░▌░▌ ▐░▐░▌▐░█▀▀▀▀▀▀▀█░▌ ▀▀▀▀█░█▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌ ▀▀▀▀█░█▀▀▀▀ ▐░▌ ▐░▌
▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄█░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄█░▌ ▐░▌ ▐░▐░▌
▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌ ▐░▌ ▐░░░░░░░░░░░▌ ▐░▌ ▐░▌
▐░▌ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░▌ ▀ ▐░▌▐░█▀▀▀▀▀▀▀█░▌ ▐░▌ ▐░█▀▀▀▀█░█▀▀ ▐░▌ ▐░▌░▌
▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▄▄▄▄█░█▄▄▄▄ ▐░▌ ▐░▌
▐░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌
▀ ▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀ ▀ ▀ ▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀
Reloaded"
when "Matrix Mode"
puts " .o888b. A db dD db dD .d888b. .d888b. db dD db dD A A db .o888b. A db dD db .d888b. db dD A .d8888. d8888b. d88888b
d8' Y8 db db .d8888. YP d8' YP d8' 8P 8D 8P 8D YP d8' YP d8' db db db db .d8888. .d8888. 88 d8' Y8 .d8888. YP d8' .dPVb. 8P 8D YP d8' .d8888. db db 88' YP 88 `8D 88'
8P db dP C88888D 88'8 YP d8' d8' `Vb d8' `Vb d8' d8' d8' C88888D C88888D 88'8 YP 88'8 YP YP 8P db dP 88'8 YP d8' dP' `Vb `Vb d8' d8' 88'8 YP C88888D `8bo. 88 88 88ooo
8b V8o8P 88 88 `8b8. d8' d8' d88C dD d88C dD d8' d8' 88 88 88 88 `8b8. `8b8. 8b V8o8P `8b8. d8' d88C dD d8' `8b8. 88 88 `Y8b. 88 88 88~~~
Y8. d C88888D `V8b. d8' db d8' db C8' d8D C8' d8D d8' db d8' db C88888D C88888D `V8b. `V8b. db Y8. d `V8b. d8' db C8' d8D d8' db `V8b. C88888D db 8D 88 .8D 88
`Y888P' YP YP db 8 8D d8' YP d8' YP `888P Yb `888P Yb d8' YP d8' YP YP YP YP YP db 8 8D db 8 8D YP `Y888P' db 8 8D d8' YP `888P Yb d8' YP db 8 8D YP YP `8888Y' Y8888D' YP
`8888Y' `8888Y' `8888Y' `8888Y' `8888Y'
V V V V V "
sleep(0.5)
puts"d888888b db db d88888b .88b d88. .d8b. d888888b d8888b. d888888b db db d888888b db db d88888b .88b d88. .d8b. d888888b d8888b. d888888b db db
`~~88~~' 88 88 88' 88'YbdP`88 d8' `8b `~~88~~' 88 `8D `88' `8b d8' `~~88~~' 88 88 88' 88'YbdP`88 d8' `8b `~~88~~' 88 `8D `88' `8b d8'
88 88ooo88 88ooooo 88 88 88 88ooo88 88 88oobY' 88 `8bd8' 88 88ooo88 88ooooo 88 88 88 88ooo88 88 88oobY' 88 `8bd8'
88 88~~~88 88~~~~~ 88 88 88 88~~~88 88 88`8b 88 .dPYb. 88 88~~~88 88~~~~~ 88 88 88 88~~~88 88 88`8b 88 .dPYb.
88 88 88 88. 88 88 88 88 88 88 88 `88. .88. .8P Y8. 88 88 88 88. 88 88 88 88 88 88 88 `88. .88. .8P Y8.
YP YP YP Y88888P YP YP YP YP YP YP 88 YD Y888888P YP YP YP YP YP Y88888P YP YP YP YP YP YP 88 YD Y888888P YP YP
"
sleep(0.5)
puts " A db .d888b. A A db db .o888b. dD .d888b. db Cb .d888b. dD db db dD A
db db .d8888. .dPVb. 8P 8D .d8888. .d8888. 88 88 d8' Y8 db db d8' 8. A .8 8P 8D .dPVb. `8b 8P 8D db d8' .dPVb. YP d8' .d8888.
C88888D 88'8 YP dP' `Vb `Vb d8' 88'8 YP 88'8 YP YP YP 8P db dP C88888D d8 `8.8.8' `Vb d8' dP' `Vb 8b `Vb d8' 88 d8 dP' `Vb d8' 88'8 YP
88 88 `8b8. d88C dD `8b8. `8b8. 8b V8o8P 88 88 C88 888 d88C dD 88D d88C dD C8888D C88 d8' `8b8.
C88888D `V8b. C8' d8D `V8b. `V8b. db db Y8. d C88888D V8 .d'8`b. C8' d8D 8P C8' d8D 88 V8 d8' db `V8b.
YP YP db 8 8D `888P Yb db 8 8D db 8 8D YP YP `Y888P' YP YP V8. 8' V `8 `888P Yb .8P `888P Yb VP C88888D V8. d8' YP db 8 8D
`8888Y' `8888Y' `8888Y' VD CP VD `8888Y'
V V V V "
sleep(0.5)
puts " .o888b. db dD db dD .d888b. .o888b. .o888b. .o888b. db db dD db db dD A
d8' Y8 YP d8' YP d8' 8P 8D db db d8' Y8 d8' Y8 d8' Y8 db db .dPVb. 8. A .8 YP d8' .dPVb. YP d8' .d8888. db db
8P db dP d8' d8' `Vb d8' C88888D 8P db dP 8P db dP 8P db dP C88888D dP' `Vb `8.8.8' d8' dP' `Vb d8' 88'8 YP C88888D
8b V8o8P d8' d8' d88C dD 88 88 8b V8o8P 8b V8o8P 8b V8o8P 88 88 888 d8' d8' `8b8. 88 88
Y8. d d8' db d8' db C8' d8D C88888D Y8. d Y8. d Y8. d C88888D .d'8`b. d8' db d8' db `V8b. C88888D
`Y888P' d8' YP d8' YP `888P Yb YP YP `Y888P' `Y888P' `Y888P' YP YP 8' V `8 d8' YP d8' YP db 8 8D YP YP
`8888Y'
V "
sleep(0.5)
puts "d888888b db db d88888b .88b d88. .d8b. d888888b d8888b. d888888b db db d888888b db db d88888b .88b d88. .d8b. d888888b d8888b. d888888b db db
`~~88~~' 88 88 88' 88'YbdP`88 d8' `8b `~~88~~' 88 `8D `88' `8b d8' `~~88~~' 88 88 88' 88'YbdP`88 d8' `8b `~~88~~' 88 `8D `88' `8b d8'
88 88ooo88 88ooooo 88 88 88 88ooo88 88 88oobY' 88 `8bd8' 88 88ooo88 88ooooo 88 88 88 88ooo88 88 88oobY' 88 `8bd8'
88 88~~~88 88~~~~~ 88 88 88 88~~~88 88 88`8b 88 .dPYb. 88 88~~~88 88~~~~~ 88 88 88 88~~~88 88 88`8b 88 .dPYb.
88 88 88 88. 88 88 88 88 88 88 88 `88. .88. .8P Y8. 88 88 88 88. 88 88 88 88 88 88 88 `88. .88. .8P Y8.
YP YP YP Y88888P YP YP YP YP YP YP 88 YD Y888888P YP YP YP YP YP Y88888P YP YP YP YP YP YP 88 YD Y888888P YP YP
"
sleep(0.5)
puts " A db dD db .d888b. db dD db dD A .o888b. db .o888b. db A db
db db .d8888. YP d8' .dPVb. 8P 8D 8. A .8 8. A .8 YP d8' YP d8' .d8888. db db d8' Y8 88 d8' Y8 db db db db 88 .d8888. .dPVb.
C88888D 88'8 YP d8' dP' `Vb `Vb d8' `8.8.8' `8.8.8' d8' d8' 88'8 YP C88888D 8P db dP YP 8P db dP C88888D C88888D YP 88'8 YP dP' `Vb
88 88 `8b8. d8' d88C dD 888 888 d8' d8' `8b8. 88 88 8b V8o8P 8b V8o8P 88 88 88 88 `8b8.
C88888D `V8b. d8' db C8' d8D .d'8`b. .d'8`b. d8' db d8' db `V8b. C88888D Y8. d db Y8. d C88888D C88888D db `V8b.
YP YP db 8 8D d8' YP `888P Yb 8' V `8 8' V `8 d8' YP d8' YP db 8 8D YP YP `Y888P' YP `Y888P' YP YP YP YP YP db 8 8D
`8888Y' `8888Y' `8888Y'
V V V "
sleep(0.5)
puts "d888888b db db d88888b .88b d88. .d8b. d888888b d8888b. d888888b db db d888888b db db d88888b .88b d88. .d8b. d888888b d8888b. d888888b db db d888888b db db
`~~88~~' 88 88 88' 88'YbdP`88 d8' `8b `~~88~~' 88 `8D `88' `8b d8' `~~88~~' 88 88 88' 88'YbdP`88 d8' `8b `~~88~~' 88 `8D `88' `8b d8' `~~88~~' 88 88
88 88ooo88 88ooooo 88 88 88 88ooo88 88 88oobY' 88 `8bd8' 88 88ooo88 88ooooo 88 88 88 88ooo88 88 88oobY' 88 `8bd8' 88 88ooo88
88 88~~~88 88~~~~~ 88 88 88 88~~~88 88 88`8b 88 .dPYb. 88 88~~~88 88~~~~~ 88 88 88 88~~~88 88 88`8b 88 .dPYb. 88 88~~~88
88 88 88 88. 88 88 88 88 88 88 88 `88. .88. .8P Y8. 88 88 88 88. 88 88 88 88 88 88 88 `88. .88. .8P Y8. 88 88 88
YP YP YP Y88888P YP YP YP YP YP YP 88 YD Y888888P YP YP YP YP YP Y88888P YP YP YP YP YP YP 88 YD Y888888P YP YP YP YP YP
"
sleep(0.5)
puts " .o888b. db dD db .d888b. db db dD A db dD .d888b. db dD A .o888b. .d888b. .o888b. A
d8' Y8 db db YP d8' .dPVb. 8P 8D .dPVb. YP d8' db db .d8888. YP d8' 8P 8D YP d8' .d8888. db db d8' Y8 8P 8D d8' Y8 .d8888.
8P db dP C88888D d8' dP' `Vb `Vb d8' dP' `Vb d8' C88888D 88'8 YP d8' `Vb d8' d8' 88'8 YP C88888D 8P db dP `Vb d8' 8P db dP 88'8 YP
8b V8o8P 88 88 d8' d88C dD d8' 88 88 `8b8. d8' d88C dD d8' `8b8. 88 88 8b V8o8P d88C dD 8b V8o8P `8b8.
Y8. d C88888D d8' db C8' d8D d8' db C88888D `V8b. d8' db C8' d8D d8' db `V8b. C88888D Y8. d C8' d8D Y8. d `V8b.
`Y888P' YP YP d8' YP `888P Yb d8' YP YP YP db 8 8D d8' YP `888P Yb d8' YP db 8 8D YP YP `Y888P' `888P Yb `Y888P' db 8 8D
`8888Y' `8888Y' `8888Y'
V V V "
sleep(0.5)
puts " A db dD db .d888b. db d8b db db db d8b db .o888b. A db dD .d888b. .o888b. A db
db db .d8888. YP d8' .dPVb. 8P 8D 88 I8I 88 88 88 888o 88 d8' Y8 db db .d8888. YP d8' 8P 8D db db d8' Y8 .d8888. db db .dPVb.
C88888D 88'8 YP d8' dP' `Vb `Vb d8' 88 I8I 88 Y8 8P 88V8o 88 8P db dP C88888D 88'8 YP d8' `Vb d8' C88888D 8P db dP 88'8 YP C88888D dP' `Vb
88 88 `8b8. d8' d88C dD Y8 I8I 88 `8b d8' 88 V8o88 8b V8o8P 88 88 `8b8. d8' d88C dD 88 88 8b V8o8P `8b8. 88 88
C88888D `V8b. d8' db C8' d8D `8b d8'8b d8' `8bd8' 88 V888 Y8. d C88888D `V8b. d8' db C8' d8D C88888D Y8. d `V8b. C88888D
YP YP db 8 8D d8' YP `888P Yb `8b8' `8d8' YP VP V8P `Y888P' YP YP db 8 8D d8' YP `888P Yb YP YP `Y888P' db 8 8D YP YP
`8888Y' `8888Y' `8888Y'
V V V "
sleep(0.5)
puts "d888888b db db d88888b .88b d88. .d8b. d888888b d8888b. d888888b db db d888888b db db d88888b .88b d88. .d8b. d888888b d8888b. d888888b db db
`~~88~~' 88 88 88' 88'YbdP`88 d8' `8b `~~88~~' 88 `8D `88' `8b d8' `~~88~~' 88 88 88' 88'YbdP`88 d8' `8b `~~88~~' 88 `8D `88' `8b d8'
88 88ooo88 88ooooo 88 88 88 88ooo88 88 88oobY' 88 `8bd8' 88 88ooo88 88ooooo 88 88 88 88ooo88 88 88oobY' 88 `8bd8'
88 88~~~88 88~~~~~ 88 88 88 88~~~88 88 88`8b 88 .dPYb. 88 88~~~88 88~~~~~ 88 88 88 88~~~88 88 88`8b 88 .dPYb.
88 88 88 88. 88 88 88 88 88 88 88 `88. .88. .8P Y8. 88 88 88 88. 88 88 88 88 88 88 88 `88. .88. .8P Y8.
YP YP YP Y88888P YP YP YP YP YP YP 88 YD Y888888P YP YP YP YP YP Y88888P YP YP YP YP YP YP 88 YD Y888888P YP YP
"
sleep(0.5)
when "Welcome"
puts " ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄▄▄▄▄▄▄
▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░▌ ▐░░▌▐░░░░░░░░░░░▌
▐░▌ ▐░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░▌ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░▌░▌ ▐░▐░▌▐░█▀▀▀▀▀▀▀▀▀
▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌▐░▌ ▐░▌▐░▌▐░▌
▐░▌ ▄ ▐░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄▄▄
▐░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌
▐░▌ ▐░▌░▌ ▐░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▀ ▐░▌▐░█▀▀▀▀▀▀▀▀▀
▐░▌▐░▌ ▐░▌▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌
▐░▌░▌ ▐░▐░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄▄▄
▐░░▌ ▐░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌▐░░░░░░░░░░░▌
▀▀ ▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀
"
when "Epic Battle"
puts " ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄
▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░░░░░░░░░░░▌
▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌ ▀▀▀▀█░█▀▀▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌ ▀▀▀▀█░█▀▀▀▀ ▀▀▀▀█░█▀▀▀▀ ▐░▌ ▐░█▀▀▀▀▀▀▀▀▀
▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌ ▐░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌ ▐░▌ ▐░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄▄▄
▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░▌ ▐░▌ ▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌ ▐░▌ ▐░▌ ▐░▌ ▐░░░░░░░░░░░▌
▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▐░▌ ▐░▌ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌ ▐░▌ ▐░▌ ▐░▌ ▐░█▀▀▀▀▀▀▀▀▀
▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▄▄▄▄█░█▄▄▄▄ ▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄▄▄
▐░░░░░░░░░░░▌▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░░░░░░░░░░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀
"
when "Hit"
puts " ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄
▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
▐░▌ ▐░▌ ▀▀▀▀█░█▀▀▀▀ ▀▀▀▀█░█▀▀▀▀
▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄█░▌ ▐░▌ ▐░▌
▐░░░░░░░░░░░▌ ▐░▌ ▐░▌
▐░█▀▀▀▀▀▀▀█░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌ ▄▄▄▄█░█▄▄▄▄ ▐░▌
▐░▌ ▐░▌▐░░░░░░░░░░░▌ ▐░▌
▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀
"
when "Missed"
puts " ▄▄ ▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄
▐░░▌ ▐░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░▌
▐░▌░▌ ▐░▐░▌ ▀▀▀▀█░█▀▀▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌
▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░▐░▌ ▐░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌
▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌
▐░▌ ▀ ▐░▌ ▐░▌ ▀▀▀▀▀▀▀▀▀█░▌ ▀▀▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░▌ ▐░▌
▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌ ▄▄▄▄█░█▄▄▄▄ ▄▄▄▄▄▄▄▄▄█░▌ ▄▄▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌
▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░▌
▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀
"
when "Dodged"
puts " ▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄
▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░▌
▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌
▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌
▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌▐░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌
▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░▌ ▐░▌
▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌
▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░▌
▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀
"
when "You got hit"
puts " ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄
▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
▐░▌ ▐░▌▐░█▀▀▀▀▀▀▀█░▌▐░▌ ▐░▌ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌ ▀▀▀▀█░█▀▀▀▀ ▐░▌ ▐░▌ ▀▀▀▀█░█▀▀▀▀ ▀▀▀▀█░█▀▀▀▀
▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄█░▌ ▐░▌ ▐░▌
▐░░░░░░░░░░░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░░░░░░░░▌▐░▌ ▐░▌ ▐░▌ ▐░░░░░░░░░░░▌ ▐░▌ ▐░▌
▀▀▀▀█░█▀▀▀▀ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▀▀▀▀▀▀█░▌▐░▌ ▐░▌ ▐░▌ ▐░█▀▀▀▀▀▀▀█░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌ ▐░▌ ▐░▌ ▐░▌ ▄▄▄▄█░█▄▄▄▄ ▐░▌
▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌ ▐░▌
▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀
"
when "Agent Smith"
puts " ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄
▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░▌ ▐░▌▐░░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░▌ ▐░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌
▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▐░▌░▌ ▐░▌ ▀▀▀▀█░█▀▀▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▐░▌░▌ ▐░▐░▌ ▀▀▀▀█░█▀▀▀▀ ▀▀▀▀█░█▀▀▀▀ ▐░▌ ▐░▌
▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄█░▌
▐░░░░░░░░░░░▌▐░▌▐░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░░░░░░░░░░░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░░░░░░░░░░░▌
▐░█▀▀▀▀▀▀▀█░▌▐░▌ ▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▀▀▀▀▀▀▀▀▀█░▌▐░▌ ▀ ▐░▌ ▐░▌ ▐░▌ ▐░█▀▀▀▀▀▀▀█░▌
▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▐░▌ ▐░▌ ▄▄▄▄▄▄▄▄▄█░▌▐░▌ ▐░▌ ▄▄▄▄█░█▄▄▄▄ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░░▌ ▐░▌ ▐░░░░░░░░░░░▌▐░▌ ▐░▌▐░░░░░░░░░░░▌ ▐░▌ ▐░▌ ▐░▌
▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀
"
when "Doors"
puts " ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄
▐░░░░░░░░░░░▌ ▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀
▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌
▐░░░░░░░░░░░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄▄▄
▀▀▀▀▀▀▀▀▀█░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░█▀▀▀▀█░█▀▀ ▀▀▀▀▀▀▀▀▀█░▌
▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌
▄▄▄▄▄▄▄▄▄█░▌ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▌ ▄▄▄▄▄▄▄▄▄█░▌
▐░░░░░░░░░░░▌ ▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌▐░░░░░░░░░░░▌
▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀
"
when "Oracle"
puts " ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄
▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░░░░░░░░░░░▌
▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░▌ ▐░█▀▀▀▀▀▀▀▀▀
▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄▄▄
▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌ ▐░░░░░░░░░░░▌
▐░▌ ▐░▌▐░█▀▀▀▀█░█▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░▌ ▐░▌ ▐░█▀▀▀▀▀▀▀▀▀
▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▌ ▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄▄▄
▐░░░░░░░░░░░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀
"
when "Good Bye"
puts " ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄ ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄
▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░▌ ▐░░░░░░░░░░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌
▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌ ▐░█▀▀▀▀▀▀▀█░▌▐░▌ ▐░▌▐░█▀▀▀▀▀▀▀▀▀
▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌
▐░▌ ▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄▄▄
▐░▌▐░░░░░░░░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
▐░▌ ▀▀▀▀▀▀█░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░█▀▀▀▀▀▀▀█░▌ ▀▀▀▀█░█▀▀▀▀ ▐░█▀▀▀▀▀▀▀▀▀
▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌ ▐░█▄▄▄▄▄▄▄█░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄▄▄
▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░▌ ▐░░░░░░░░░░▌ ▐░▌ ▐░░░░░░░░░░░▌
▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀
"
when "Blue or Red"
puts " ▄▄▄▄▄▄▄▄▄▄ ▄ ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄
▐░░░░░░░░░░▌ ▐░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░▌
▐░█▀▀▀▀▀▀▀█░▌▐░▌ ▐░▌ ▐░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌
▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄█░▌ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌
▐░░░░░░░░░░▌ ▐░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌
▐░█▀▀▀▀▀▀▀█░▌▐░▌ ▐░▌ ▐░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░▌ ▐░▌▐░█▀▀▀▀█░█▀▀ ▐░█▀▀▀▀█░█▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▐░▌ ▐░▌
▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌
▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░▌ ▐░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░▌
▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀
"
when "You win"
puts " ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄ ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄ ▄
▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░░▌ ▐░▌
▐░▌ ▐░▌▐░█▀▀▀▀▀▀▀█░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▀▀▀▀█░█▀▀▀▀ ▐░▌░▌ ▐░▌
▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▄ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░░░░░░░░░░░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▀▀▀▀█░█▀▀▀▀ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌
▐░▌ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌ ▐░▌░▌ ▐░▐░▌ ▄▄▄▄█░█▄▄▄▄ ▐░▌ ▐░▐░▌
▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░░▌ ▐░░▌▐░░░░░░░░░░░▌▐░▌ ▐░░▌
▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀ ▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀▀
"
when "Game Over"
puts " ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄
▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░▌ ▐░░▌▐░░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░▌░▌ ▐░▐░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌ ▐░▌ ▐░▌ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌
▐░▌ ▐░▌ ▐░▌▐░▌▐░▌ ▐░▌▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌
▐░▌▐░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
▐░▌ ▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░▌ ▀ ▐░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀█░█▀▀
▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌ ▐░▐░▌ ▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌
▐░░░░░░░░░░░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░░░░░░░░░░░▌ ▐░░░░░░░░░░░▌ ▐░▌ ▐░░░░░░░░░░░▌▐░▌ ▐░▌
▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀
"
when "Play again"
puts " ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄ ▄
▐░░░░░░░░░░░▌▐░▌ ▐░░░░░░░░░░░▌▐░▌ ▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░▌ ▐░▌
▐░█▀▀▀▀▀▀▀█░▌▐░▌ ▐░█▀▀▀▀▀▀▀█░▌▐░▌ ▐░▌ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌ ▀▀▀▀█░█▀▀▀▀ ▐░▌░▌ ▐░▌
▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌ ▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░░░░░░░░░░░▌▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░▌▐░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░█▀▀▀▀▀▀▀▀▀ ▐░▌ ▐░█▀▀▀▀▀▀▀█░▌ ▀▀▀▀█░█▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░▌ ▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌
▐░▌ ▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▌ ▄▄▄▄█░█▄▄▄▄ ▐░▌ ▐░▐░▌
▐░▌ ▐░░░░░░░░░░░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░▌ ▐░░▌
▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀ ▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀▀
"
when "End program"
puts " ▄▄▄▄▄▄▄▄▄▄▄ ▄▄ ▄ ▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄ ▄▄
▐░░░░░░░░░░░▌▐░░▌ ▐░▌▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░▌ ▐░░▌
▐░█▀▀▀▀▀▀▀▀▀ ▐░▌░▌ ▐░▌▐░█▀▀▀▀▀▀▀█░▌ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░▌░▌ ▐░▐░▌
▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌▐░▌ ▐░▌▐░▌
▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▌▐░▌ ▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▐░▌ ▐░▌
▐░░░░░░░░░░░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌▐░▌▐░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌ ▐░▌
▐░█▀▀▀▀▀▀▀▀▀ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀█░█▀▀ ▐░▌ ▐░▌▐░▌ ▀▀▀▀▀▀█░▌▐░█▀▀▀▀█░█▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░▌ ▀ ▐░▌
▐░▌ ▐░▌ ▐░▌▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▐░▌▐░█▄▄▄▄▄▄▄█░▌ ▐░▌ ▐░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌
▐░░░░░░░░░░░▌▐░▌ ▐░░▌▐░░░░░░░░░░▌ ▐░▌ ▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌
▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀▀ ▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀ ▀ ▀ ▀
"
else
puts "This is not one of my preprogrammed strings."
end
end
#This method creates enhanced separating lines
def separator
puts "
▄ ██╗▄
████╗
▀╚██╔▀
╚═╝
"*5
end
#Making a change
#Simulates an encounter between you and the agents
#returns 1 if you win
# -1 if you lose
# 0 if you escape
def the_fight(action, pp_level, ap_level)
final_outcome = 0
the_ap_level = ap_level
the_pp_level = pp_level
case action
when "fight"
if the_ap_level > the_pp_level
diff = the_ap_level - the_pp_level
i = 2
p = 7
done = false
while !done
if diff <= i
num = rand(1..10)
if num > p
final_outcome = -1
done = true
separator
puts "Sorry, looks like he was stronger than you and beat you."
else
final_outcome = 1
done = true
separator
enhanced_strings("You win")
puts "Good job, you won the fight even though he was stronger than you. Your power level has increased. Find out
how strong are you with the oracle. (Hit enter)"
pause = gets.chomp
separator
end
end
i+=2
p-=1.5
end
elsif the_pp_level > the_ap_level
diff = the_pp_level - the_ap_level
i = 2
p = 7
done = false
while !done
if diff <= i
num = rand(1..10)
if num > p
final_outcome = 1
done = true
separator
enhanced_strings("You win")
puts "Alright, you taught that guy a lesson, you were stronger than him though."
else
final_outcome = -1
done = true
separator
puts "He gave you a whooping, maybe you should run next time."
end
end
i+=2
p-=1
end
else
the_pp_level == the_ap_level
num = rand(1..2)
if num == 1
final_outcome = 1
separator
enhanced_strings("You win")
puts "Equal levels, and you beat him, nice job bro."
else
final_outcome = -1
separator
puts "Sorry body, that was a close fight though."
end
end
when "run"
chances = rand(1..10)
if chances > 4
final_outcome = 0
separator
puts "That was fast, now you see me, now you don't."
else
final_outcome = -1
separator
puts "Maybe you should've fought, you weren't fast enough and now you're dead."
end
when "fly"
final_outcome = -1 #"Fool you can't fly"
separator
puts "What are you thinking, you can't fly, you just got swatted like a fly"
when "talk"
chances = rand(1..10)
if chances > 8
final_outcome = 0
separator
puts "Wow how about those persuasive skills, you really talked this guy into not kicking you in the face."
else
final_outcome = -1
separator
puts "What are you doing, trying to talk to these guys, they don't care about your problems."
end
end
return final_outcome
end
#This method prompts the player with options
#returns the player's choice
def chosen_op(see_him, ap_level)
good_ans = false
the_ap_level = ap_level
see_agent_smith = see_him
while !good_ans
if see_agent_smith
puts "Oh damn, it's Agent Smith. You can Run, Fight, Fly out of here, or try talking your way out of this one,
although I wouldn't recommended it with this guy.(Please type in Run, Fight, Fly, or Talk)"
answer = gets.chomp.downcase
else
separator
puts "You see an agent, he's difficulty level is #{the_ap_level}/10xp. You can Run, Fight, Fly out of here, or Convince the agent that you're a nice
guy.(Please type in Run, Fight, Fly, or Talk)"
answer = gets.chomp.downcase
end
if answer == "run" || answer == "fight" || answer == "fly" || answer == "talk"
good_ans = true
final_ans = answer
else
puts "You cant do that, choose one of the options."
end
end
return final_ans
end
def training(door_number, pp_level)
the_pp_level = pp_level
case door_number
when 1
the_pp_level += 0.2
when 2
the_pp_level +=0.4
when 3
the_pp_level +=0.6
when 4
the_pp_level +=0.8
when 5
the_pp_level +=1
end
the_pp_level
end
# This method simulates the final
#battle between you and Agent Smith
#returns 100 if you win
# -1 if you lose
# 0 if you escape
#20 if you quit
def final_battle(decision, ap_level, pp_level)
final_outcome = 0
the_ap_level = ap_level
the_pp_level = pp_level
case decision
when "fight"
separator
enhanced_strings("Epic Battle")
puts "You must be really brave to fight Agent Smith. Remember all humanity is depending on you, no preassure though. He has
a power level of 10/10xp"
done = false
while !done
puts "Choose Punch, Kick, Dodge, or Quit"
choice = gets.chomp.downcase
if choice == "punch"
if rand(1..10) > 4
separator
the_ap_level -=0.5
puts "Agent Smith: #{the_ap_level}/10xp"
puts "#{$player_name}: #{the_pp_level}/10xp"
enhanced_strings("Hit")
if the_ap_level <= 0
done = true
final_outcome = 100
puts "Nice job, you killed Agent Smith and saved humanity"
end
else
separator
the_pp_level -=0.5
puts "Agent Smith: #{the_ap_level}/10xp"
puts "#{$player_name}: #{the_pp_level}/10xp"
enhanced_strings("Missed")
puts "He counter attacked with a hook and almost knocked you out."
if the_pp_level <= 0
done = true
final_outcome = -1
puts "You got killed!"
end
end
elsif choice == "kick"
if rand(1..10) > 6
separator
the_ap_level -=0.5
puts "Agent Smith: #{the_ap_level}/10xp"
puts "#{$player_name}: #{the_pp_level}/10xp"
enhanced_strings("Hit")
if the_ap_level <= 0
done = true
final_outcome = 100
puts "Nice job, you killed Agent Smith and saved humanity"
end
puts "Great kick, right on the jaw, almost knocked he's head off."
else
separator
the_pp_level -=0.5
puts "Agent Smith: #{the_ap_level}/10xp"
puts "#{$player_name}: #{the_pp_level}/10xp"
enhanced_strings("Missed")
puts "He counter attacked with a devastating double punch, put you on a swivel."
if the_pp_level <= 0
done = true
final_outcome = -1
"You got killed!"
end
end
elsif choice == "dodge"
if rand(1..2) == 1
separator
the_ap_level -=0.5
puts "Agent Smith: #{the_ap_level}/10xp"
puts "#{$player_name}: #{the_pp_level}/10xp"
enhanced_strings("Dodged")
puts "Nice, he missed, you counter attacked and put him on spagetti legs."
if $ap_level <= 0
done = true
final_outcome = 100
puts "Nice job, you killed Agent Smith and saved humanity"
end
else
separator
the_pp_level -=0.5
puts "Agent Smith: #{the_ap_level}/10xp"
puts "#{$player_name}: #{the_pp_level}/10xp"
enhanced_strings("You got hit")
puts "Wow, you dodged the wrong way and got kicked so hard, you started calling for your mommy."
if the_pp_level <= 0
done = true
final_outcome = -1
"You got killed!"
end
end
elsif choice == "quit"
done = true
final_outcome = 20
else
puts "I know you're trying to do some crazy moves but you only have 3 choices here."
end
end
when "run"
chances = rand(1..10)
if chances > 4
final_outcome = 0
separator
puts "Damn, were you a pro athlete, you ran like a gazelle when you saw that guy. You must have had a sustained speed of 30 mph."
else
final_outcome = -1
separator
puts "Uff, not fast enough, you got punched in the back of your head and killed."
end
when "fly"
final_outcome = -1 #"Fool you can't fly"
separator
puts "What are you thinking, you can't fly, you just got swatted like a fly"
when "talk"
separator
puts "Amazing, you actually talked your way.....Nah I'm just kidding, there's no way this guy is going to listen to your
weak arguments."
final_outcome = -1
end
return final_outcome
end
# This method returns true or false
# true if you see Agent Smith
# False if you don't
def see_smith(pp_level)
i = 2
k = 15
the_pp_level = pp_level
see_him = false
done = false
while !done
if the_pp_level >= 10
see_him = true
done = true
elsif the_pp_level < i
done = true
chances = rand(1..k)
if chances == 1
see_him = true
else
see_him = false
end
else
i+=2
k -=2
end
end
return see_him
end
#This method returns a number
# 1 = you won the fight
# -1 = you lost
# 0 = the fight continues
# 100 = you fought smith and won
# -100 = you got some training
def enter_door(door_number, pp_level)
final_outcome = 0
smith = false
smith_pp_level = 10
the_pp_level = pp_level
case door_number
when 1
if see_smith(the_pp_level)
separator
enhanced_strings("Agent Smith")
smith = true
decision = chosen_op(smith, smith_pp_level)
final_outcome = final_battle(decision, smith_pp_level, the_pp_level)
else
chances = rand(1..6)
if chances == 3
the_ap_level = rand(1..4)
action = chosen_op(smith, the_ap_level)
final_outcome = the_fight(action, the_pp_level, the_ap_level)
else
final_outcome = -100
end
end
when 2
if see_smith(the_pp_level)
separator
enhanced_strings("Agent Smith")
smith = true
decision = chosen_op(smith, smith_pp_level)
final_outcome = final_battle(decision, smith_pp_level, the_pp_level)
else
chances = rand(1..5)
if chances == 3
the_ap_level = rand(3..6)
action = chosen_op(smith, the_ap_level)
final_outcome = the_fight(action, the_pp_level, the_ap_level)
else
final_outcome = -100
end
end
when 3
if see_smith(the_pp_level)
separator
enhanced_strings("Agent Smith")
smith = true
decision = chosen_op(smith, smith_pp_level)
final_outcome = final_battle(decision, smith_pp_level, the_pp_level)
else
chances = rand(1..4)
if chances == 3
the_ap_level = rand(4..7)
action = chosen_op(smith, the_ap_level)
final_outcome = the_fight(action, the_pp_level, the_ap_level)
else
final_outcome = -100
end
end
when 4
if see_smith(the_pp_level)
separator
enhanced_strings("Agent Smith")
decision = chosen_op(smith, smith_pp_level)
final_outcome = final_battle(decision, smith_pp_level, the_pp_level)
else
chances = rand(1..3)
if chances == 3
the_ap_level = rand(5..8)
action = chosen_op(smith, the_ap_level)
final_outcome = the_fight(action, the_pp_level, the_ap_level)
else
final_outcome = -100
end
end
when 5
if see_smith(the_pp_level)
separator
enhanced_strings("Agent Smith")
smith = true
decision = chosen_op(smith, smith_pp_level)
final_outcome = final_battle(decision, smith_pp_level, the_pp_level)
else
chances = rand(1..2)
if chances == 2
the_ap_level = rand(7..10)
action = chosen_op(smith, the_ap_level)
final_outcome = the_fight(action, the_pp_level, the_ap_level)
else
final_outcome = -100
end
end
end
if final_outcome == 1
if the_ap_level > the_pp_level
diff = the_ap_level - the_pp_level
i = 1
k = 0.5
done = false
while !done
if diff <= i
the_pp_level += k
done = true
end
i +=1
k +=0.5
end
else
the_pp_level += 0.5
end
end
return final_outcome
end
#This method simulates the game play
#returns 1 if you beat an agent
# -1 if you lose
# 20 if you quit the game
#100 if you beat smith
def play_game(pp_level)
puts "Agent Smith is out of control, he's destroying everything. But you're not ready yet, if you see him, I suggest you run. (Hit enter!)"
pause = gets.chomp
separator
results = 0
done = false
the_pp_level = pp_level
while !done
enhanced_strings("Doors")
puts "There are 5 doors in front of you. Choose a door number or visit the oracle. (Type a number from 1-5, \"Oracle\", or \"Quit\" to
quit the game."
choice = gets.chomp
if choice.length > 1
if choice.downcase == "oracle"
separator
enhanced_strings("Oracle")
puts "Hello #{$player_name}"
puts "Your power level is #{the_pp_level}/10xp"
sleep(2)
puts "I'm happy to see you're still alive"
sleep(2)
puts "Remember the fate of humanity depends on you. (Hit enter!)"
pause = gets.chomp
separator
elsif choice.downcase == "quit"
done = true
results = 20
separator
enhanced_strings("Good Bye")
else
puts "This is not a choice"
end
elsif choice.length == 1
num = choice.to_i
case num
when 1
results = enter_door(1, the_pp_level)
if results == -100
separator
puts "No agent. You get to learn ju'jitsu and become stronger."
the_pp_level = training(1, the_pp_level)
end
when 2
results = enter_door(2, the_pp_level)
if results == -100
separator
puts "It's training time."
the_pp_level = training(2, the_pp_level)
end
when 3
results = enter_door(3, the_pp_level)
if results == -100
separator
puts "You are the lucky one, no agents this time. Let's train a little bit"
the_pp_level = training(3, the_pp_level)
end
when 4
results = enter_door(4, the_pp_level)
if results == -100
separator
puts "You just missed like a meeting of agents, that would've been ugly"
the_pp_level = training(4, the_pp_level)
end
when 5
results = enter_door(5, the_pp_level)
if results == -100
separator
puts "Nice, you just missed an agent here looking for you. How about some training."
the_pp_level = training(5, the_pp_level)
end
else
puts "The choises are 1 to 5, how hard is that to understand."
end
else
separator
puts "You already chose the red pill, there's no turning back now. You have to choose an option."
end
if results == 100
done = true
elsif results == -1
done = true
elsif results ==20
done = true
end
end
return results
end
puts "*"*2000
enhanced_strings("The Matrix")
sleep(5)
enhanced_strings("Matrix Mode")
enhanced_strings("Welcome")
sleep(3)
begin
game_over = false
checker = 0
separator
if checker == 0
pp_level = 1
end
checker +=1
puts "Enter your name"
player_name = gets.chomp.capitalize
separator
enhanced_strings("Blue or Red")
puts "Do you want to take the blue or the red pill (Please type in \"Blue\" or \"Red\")"
pill = gets.chomp
separator
if pill == "red"
puts "Remember, all I'm offering is the truth, nothing more! (Hit enter!)"
pause = gets.chomp
separator
you_win = play_game(pp_level)
if you_win == 100
sleep(5)
enhanced_strings("You win")
puts "Congratulations, you beat Smith and saved humanity. You really are THE ONE!"
game_over = true
elsif you_win == 1
you_win = play_game(pp_level)
elsif you_win == -1
separator
sleep(5)
enhanced_strings("Game Over")
puts "I was wrong about you, I thought you were the one."
sleep(5)
separator
enhanced_strings("Play again")
goodbye = false
while !goodbye
puts "Yes or No?"
yes_no = gets.chomp.downcase
if yes_no == "yes"
puts "Better luck this time."
goodbye = true
elsif yes_no == "no"
separator
enhanced_strings("Good Bye")
game_over = true
goodbye = true
else
puts "You either want to play, or you don't."
end
end
else
separator
enhanced_strings("End program")
puts "Looks like that's enough for you."
game_over = true
end
elsif pill == "blue"
game_over = true
puts "You wake up in your bed and beleive whatever you want to believe!"
else
puts "What's the matter #{$player_name}, can't you read, just type \"Blue\" or \"Red\""
end
end until game_over