repl.it
@Gentrix/

Assignment - Game

Python

No description

fork
loading
Files
  • main.py
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
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
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
import time
import random

#Codes for colours so I don't have to input the all of the code all the time
cc = "\033["
yellow = cc+"1;93m"
green = cc+"1;32m"
normal = cc+"0m"
redscary = cc+"3;31m"
red = cc+"1;31m"
blue = cc+"1;34m"


#Dictionary for all rooms. Directions = Where you can travel. Object = What you can examine. Item = What you can pick up. Specific Items = If they can be used in that room
rooms = {

    'T1':{
      'north' : 'FR',
      'east' : 'T2',
      'use':'',
      'use1':'',
    },
    'FR':{
      'south':'T1',
      'use':'',
      'use1':'',
    },
    'T2':{
      'east': 'T3',
      'object': 'drawers',
      'itemT':'key',
      'use':'',
      'use1':'',
    },
    'T3':{
      'east':'initial room',
      'itemT':'stick',
      'use':'long key',
      'use1':'',
    },
    #The map of the actual game---------------
    'initial room':{      
      'north':'kitchen',
      'south':'basement area',
      'east':'hall',
      'itemV':'note',
      'object':'button',
      'use':'',
      'item':"",
      'use1':'',
    },
    'kitchen':{
      'west':'pantry',
      'south':'initial room',
      'east':'living room',
      'object':'open pipe',
      'item':'basement key',
      'use':'magnetic stick',
      'use1':'',
      'itemV':'',
    },
    'pantry':{
      'east':'kitchen',
      'object':'chest',
      'item':'small key',
      'use':'pantry chest key',
      'use1':'',
      'itemV':'',
    },
    'basement area':{
      'north':'initial room',
      'west':'???',
      'object1':'vent',
      'object':'door',
      'use1':'screwdriver',
      'use':'basement key',
      'item':"",
      'itemV':'',
    },
    '???':{
      'east':'basement area',
      'itemV':'note',
      'use':'',
      'use1':'',
    },
    'living room':{
      'west':'kitchen',
      'south':'hall',
      'object':'caset player',
      'itemV':'note',
      'use':'caset tape',
      'use1':'',
    },
    'hall':{
      'north':'living room',
      'south':'upstairs hall',
      'east':'study',
      'west':'initial room',
      'object':'table',
      'item':'note',
      'use':'',
      'use1':'',
      'itemV':'',
    },
    'study':{
      'west':'hall',
      'south':'filing room',
      'object':'painting',
      'itemV':'medical cabinet key',
      'use':'',
      'use1':'',
    },
    'filing room':{
      'north':'study',
      'object':'filing cabinet',
      'item':'book',
      'use':'small key',
      'use1':'',
      'itemV':'',
    },
    'painting room':{
      'south':'study',
      'object':'safe',
      'item':'magnet',
      'itemV':'screwdriver',
      'use':'',
      'use1':'',
    },
    'upstairs hall':{
      'south':'storage room',
      'west':'bedroom',
      'east':'library',
      'north':'hall',
      'object':'rack',
      'item':'pantry chest key',
      'use':'',
      'use1':'',
      'itemV':'',
    },
    'storage room':{
      'north':'upstairs hall',
      'object':'man',
      'item':'stick',
      'use':'pliers',
      'use1':'',
      'itemV':'',
    },
    'library':{
      'west':'upstairs hall',
      'object':'bookcase',
      'itemV':'note',
      'use':'book',
      'use1':'',
    },
    'bedroom':{
      'north':'bathroom',
      'east':'upstairs hall',
      'object':'cupboard',
      'item':'caset tape',
      'use':'',
      'use1':'',
      'itemV':'',
    },
    'bathroom':{
      'south':'bedroom',
      'object':'medical cabinet',
      'item':'note',
      'use':'medical cabinet key',
      'use1':'',
      'itemV':'',
    },
    'bookcase room':{
      'west':'library',
      'itemV':'pliers',
      'use':'',
      'use1':'',

    },
    'boss':{
      'north':'basement area',     
      'item':"note",
      'use1':'',
      'itemV':'',
    },
}









#Variables VVVVVVVVVVVVVVV
currentroom = "T1"
inventory =[]
answer = []
tdoor = "close"
doorB = 0
win = 0
gif = 0
tutorial = "..."
choice1 = ""
choice2 = ""
choice3 = ""
manbook = 0
options = ["rock", "paper", "scissors"]




#Defined codes will be written here at the top VVVVVVVVVVVVVVV

def status():
  global currentroom

  #This creates rules for when to label the rooms. It will not show when the room = any of the tutorial rooms
  nostatus=[
    currentroom != "T1",
    currentroom != "T2",
    currentroom != "T3",
    currentroom != "FR",
  ]
  if all(nostatus):
    print("---------------------------------------")
    #Prints your current room.=
    print((green)+"You are in the " + (currentroom)+(normal))
    #print((red)+rooms[currentroom]['appearance'])
    #prints the objects in the room
    if 'object' in rooms[currentroom]:
      print("There is a "+(yellow)+(rooms[currentroom]['object'])+(normal))
    #Shows items in room
    if 'itemV' in rooms[currentroom]:
      print("You also see "+(yellow)+(rooms[currentroom]['itemV'])+(normal))
    #Shows items in bag
    print("Your bag consits of " +(yellow)+str(inventory)+(normal))
    print("---------------------------------------")



#the definition of command_game() lasts until line 1163
def command_game():

  #Variables most have global in front because they take the variables from outside the funtion 
  global rooms
  global answer
  global currentroom
  global inventory
  global tdoor
  global options
  global doorB
  global manbook
  notenumber = 0

  
  #Code for your command: This simply takes your answer and transforms it into a way that my function can always understand it.
  command = input((blue)+"Command Prompt\\\ "+(normal)).lower()
  seperator = " "
  answer = command.split(seperator)


  #CONDITIONS for USING items VVVVVVVVVVVVVVVVVVVV

  #Each item that is able to be 'used' in the game has certain conditions to be able to be used. They are listed below
  longkeyU = [
    "long key" in inventory,
    "long" in answer,
    "key" in answer,
  ]
  magneticstickU = [
    "magnetic stick" in inventory,
    "magnetic" in answer,
    "stick" in answer,
    "magnetic stick" in rooms[currentroom]['use'],
  ]
  pantrychestkeyU = [
    "pantry chest key" in inventory,
    "pantry" in answer,
    "chest" in answer,
    "key" in answer,
    "pantry chest key" in rooms[currentroom]['use'],
  ]
  smallkeyU = [
    "small key" in inventory,
    "small" in answer,
    "key" in answer,
    "small key" in rooms[currentroom]['use'],
  ]
  bookU =[
    "book" in inventory,
    "book" in answer,
    "book" in rooms[currentroom]['use'],
  ]
  medicalcabinetkeyU = [
    "medical cabinet key" in inventory,
    "medical" in answer,
    "cabinet" in answer,
    "key" in answer,
    "medical cabinet key" in rooms[currentroom]['use'],
  ]
  screwdriverU = [
    "screwdriver" in inventory,
    "screwdriver" in answer,
    "screwdriver" in rooms[currentroom]['use1'],
  ]
  pliersU = [
    "pliers" in inventory,
    "pliers" in answer,
    "pliers" in rooms[currentroom]['use'],
  ]
  basementkeyU =[
    "basement key" in inventory,
    "basement" in answer,
    "key" in answer,
    "basement key" in rooms[currentroom]['use']
  ]
  casetU = [
    "caset tape" in inventory,
    "caset" in answer,
    "tape" in answer,
    "caset tape" in rooms[currentroom]['use'],
  ]


#CONDITIONS for COMBINING items VVVVVVVVVVVVVVVVVVVV

  #
  magneticstickC = [
    "magnet" in answer,
    "stick" in answer,
    "magnet" in inventory,
    "stick" in inventory,
  ] 
  longkeyC = [
    "key" in answer,
    "key" in inventory,
    "stick" in inventory,
    "stick" in answer,
  ]


#Displays the incompleted MAP
  if "map" in answer:
    if currentroom == "initial room":
      print('''  -yyyyyyyyyyyyyyyyy   oyyyyyyyyyyyyyyyy/  .yyyyyyyyyyyyyyyyy`                                                         o.                             
  /M              +N   ds              mo  -M.             :M`                             /////////////////` `////////h+///////    :////////////////.
  /M              +N   ds              mo  -M.             :M`                            `Mo/////////////+M- .M+/////////////oM`   Ns//////////////M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N:::ms              my//+M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N```ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M``````````````oN   ds``````````````mo  -M-`````````````/M`                            `M:             .M- .M.             -M`   N+              M/
  -yssssssssssssssss   oyssssssyhssssssy/  .ysssssssdsssssssy`                            `M:             .M- .M.             -M////N+              M/
                               .o                   s`                                    `myssssssssssssssm. .M.             -M`   N+              M/
                       `.......-s.......`   ........y-.......   .................          ........o:.......  .M.             -M`   N+              M/
                       yhsssssssyssssssm+  .msssssssyssssssym` :mssssssssssssssym          ........o:.......  .M.             -M:---N+              M/
                       ds              mo  -M.             :M` :M`             /M         `myssssssssssssssm. .M.             -M-...N+              M/
                       ds     ...`     mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds    .mmmh     mo  -M.             :M-./M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds    .mmmh     my//+M.             :M:-+M`             /M         `M:             .M:.:M.             -M`   N+              M/
                       ds     ....     mo  -M.             :M` :M`             /M         `M:             .M/-/M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       dh//////////////No  -M.             :M` :M//////////////sM         `M:             .M- .M:............./M`   No..............M/
                       :///////+h///////.  -M.             :M` `////////d////////         `Mo/////////////+M- `yssssssyhsssssssy`   ysssssssssssssssy-
                               .o          -M.             :M`          y                  /////////////////`         -o                              
                       oyssssssyhssssssy/  -M.             :M` -ysssssssdsssssssy                             `///////+y////////                      
                       ds``````````````mo  -M.             :M` :M.`````````````+M                             .M+/////////////oM`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -MyyyyyyyyyyyyyyhM` :M`             /M                             .M.             -M`                     
                       oyyyyyyyyyyyyyyyy/           s.         -yyyyyyyyyyyyyyyyy                             .MhyyyyyyyyyyyyyhM`                     ''')
   
    if currentroom == "kitchen":
      print('''  -yyyyyyyyyyyyyyyyy   oyyyyyyyyyyyyyyyy/  .yyyyyyyyyyyyyyyyy`                                                         o.                             
  /M              +N   ds              mo  -M.             :M`                             /////////////////` `////////h+///////    :////////////////.
  /M              +N   ds              mo  -M.             :M`                            `Mo/////////////+M- .M+/////////////oM`   Ns//////////////M/
  /M              +N   ds    `yyys     mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N:::ms    .MMMm     my//+M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N```ds    `///:     mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M``````````````oN   ds``````````````mo  -M-`````````````/M`                            `M:             .M- .M.             -M`   N+              M/
  -yssssssssssssssss   oyssssssyhssssssy/  .ysssssssdsssssssy`                            `M:             .M- .M.             -M////N+              M/
                               .o                   s`                                    `myssssssssssssssm. .M.             -M`   N+              M/
                       `.......-s.......`   ........y-.......   .................          ........o:.......  .M.             -M`   N+              M/
                       yhsssssssyssssssm+  .msssssssyssssssym` :mssssssssssssssym          ........o:.......  .M.             -M:---N+              M/
                       ds              mo  -M.             :M` :M`             /M         `myssssssssssssssm. .M.             -M-...N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              mo  -M.             :M-./M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              my//+M.             :M:-+M`             /M         `M:             .M:.:M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M/-/M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       dh//////////////No  -M.             :M` :M//////////////sM         `M:             .M- .M:............./M`   No..............M/
                       :///////+h///////.  -M.             :M` `////////d////////         `Mo/////////////+M- `yssssssyhsssssssy`   ysssssssssssssssy-
                               .o          -M.             :M`          y                  /////////////////`         -o                              
                       oyssssssyhssssssy/  -M.             :M` -ysssssssdsssssssy                             `///////+y////////                      
                       ds``````````````mo  -M.             :M` :M.`````````````+M                             .M+/////////////oM`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -MyyyyyyyyyyyyyyhM` :M`             /M                             .M.             -M`                     
                       oyyyyyyyyyyyyyyyy/           s.         -yyyyyyyyyyyyyyyyy                             .MhyyyyyyyyyyyyyhM`                     
                                                    /`                                                                                                ''')
    
    if currentroom == "pantry":
      print('''  -yyyyyyyyyyyyyyyyy   oyyyyyyyyyyyyyyyy/  .yyyyyyyyyyyyyyyyy`                                                         o.                             
  /M              +N   ds              mo  -M.             :M`                             /////////////////` `////////h+///////    :////////////////.
  /M              +N   ds              mo  -M.             :M`                            `Mo/////////////+M- .M+/////////////oM`   Ns//////////////M/
  /M     oyyy-    +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M     hMMM:    +N:::ms              my//+M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M     -///`    +N```ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M``````````````oN   ds``````````````mo  -M-`````````````/M`                            `M:             .M- .M.             -M`   N+              M/
  -yssssssssssssssss   oyssssssyhssssssy/  .ysssssssdsssssssy`                            `M:             .M- .M.             -M////N+              M/
                               .o                   s`                                    `myssssssssssssssm. .M.             -M`   N+              M/
                       `.......-s.......`   ........y-.......   .................          ........o:.......  .M.             -M`   N+              M/
                       yhsssssssyssssssm+  .msssssssyssssssym` :mssssssssssssssym          ........o:.......  .M.             -M:---N+              M/
                       ds              mo  -M.             :M` :M`             /M         `myssssssssssssssm. .M.             -M-...N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              mo  -M.             :M-./M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              my//+M.             :M:-+M`             /M         `M:             .M:.:M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M/-/M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       dh//////////////No  -M.             :M` :M//////////////sM         `M:             .M- .M:............./M`   No..............M/
                       :///////+h///////.  -M.             :M` `////////d////////         `Mo/////////////+M- `yssssssyhsssssssy`   ysssssssssssssssy-
                               .o          -M.             :M`          y                  /////////////////`         -o                              
                       oyssssssyhssssssy/  -M.             :M` -ysssssssdsssssssy                             `///////+y////////                      
                       ds``````````````mo  -M.             :M` :M.`````````````+M                             .M+/////////////oM`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -MyyyyyyyyyyyyyyhM` :M`             /M                             .M.             -M`                     
                       oyyyyyyyyyyyyyyyy/           s.         -yyyyyyyyyyyyyyyyy                             .MhyyyyyyyyyyyyyhM`                     
                                                    /`                                                                                                ''')
    
    if currentroom == "living room" :
      print('''  -yyyyyyyyyyyyyyyyy   oyyyyyyyyyyyyyyyy/  .yyyyyyyyyyyyyyyyy`                                                         o.                             
  /M              +N   ds              mo  -M.             :M`                             /////////////////` `////////h+///////    :////////////////.
  /M              +N   ds              mo  -M.             :M`                            `Mo/////////////+M- .M+/////////////oM`   Ns//////////////M/
  /M              +N   ds              mo  -M.    /yyy:    :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N:::ms              my//+M.    sMMM+    :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N```ds              mo  -M.    -///.    :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M``````````````oN   ds``````````````mo  -M-`````````````/M`                            `M:             .M- .M.             -M`   N+              M/
  -yssssssssssssssss   oyssssssyhssssssy/  .ysssssssdsssssssy`                            `M:             .M- .M.             -M////N+              M/
                               .o                   s`                                    `myssssssssssssssm. .M.             -M`   N+              M/
                       `.......-s.......`   ........y-.......   .................          ........o:.......  .M.             -M`   N+              M/
                       yhsssssssyssssssm+  .msssssssyssssssym` :mssssssssssssssym          ........o:.......  .M.             -M:---N+              M/
                       ds              mo  -M.             :M` :M`             /M         `myssssssssssssssm. .M.             -M-...N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              mo  -M.             :M-./M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              my//+M.             :M:-+M`             /M         `M:             .M:.:M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M/-/M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       dh//////////////No  -M.             :M` :M//////////////sM         `M:             .M- .M:............./M`   No..............M/
                       :///////+h///////.  -M.             :M` `////////d////////         `Mo/////////////+M- `yssssssyhsssssssy`   ysssssssssssssssy-
                               .o          -M.             :M`          y                  /////////////////`         -o                              
                       oyssssssyhssssssy/  -M.             :M` -ysssssssdsssssssy                             `///////+y////////                      
                       ds``````````````mo  -M.             :M` :M.`````````````+M                             .M+/////////////oM`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -MyyyyyyyyyyyyyyhM` :M`             /M                             .M.             -M`                     
                       oyyyyyyyyyyyyyyyy/           s.         -yyyyyyyyyyyyyyyyy                             .MhyyyyyyyyyyyyyhM`                     
                                                    /`                                                                                                ''')
    
    if currentroom == "basement area":
      print('''  -yyyyyyyyyyyyyyyyy   oyyyyyyyyyyyyyyyy/  .yyyyyyyyyyyyyyyyy`                                                         o.                             
  /M              +N   ds              mo  -M.             :M`                             /////////////////` `////////h+///////    :////////////////.
  /M              +N   ds              mo  -M.             :M`                            `Mo/////////////+M- .M+/////////////oM`   Ns//////////////M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N:::ms              my//+M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N```ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M``````````````oN   ds``````````````mo  -M-`````````````/M`                            `M:             .M- .M.             -M`   N+              M/
  -yssssssssssssssss   oyssssssyhssssssy/  .ysssssssdsssssssy`                            `M:             .M- .M.             -M////N+              M/
                               .o                   s`                                    `myssssssssssssssm. .M.             -M`   N+              M/
                       `.......-s.......`   ........y-.......   .................          ........o:.......  .M.             -M`   N+              M/
                       yhsssssssyssssssm+  .msssssssyssssssym` :mssssssssssssssym          ........o:.......  .M.             -M:---N+              M/
                       ds              mo  -M.             :M` :M`             /M         `myssssssssssssssm. .M.             -M-...N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              mo  -M.             :M-./M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              my//+M.             :M:-+M`             /M         `M:             .M:.:M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M/-/M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       dh//////////////No  -M.             :M` :M//////////////sM         `M:             .M- .M:............./M`   No..............M/
                       :///////+h///////.  -M.             :M` `////////d////////         `Mo/////////////+M- `yssssssyhsssssssy`   ysssssssssssssssy-
                               .o          -M.             :M`          y                  /////////////////`         -o                              
                       oyssssssyhssssssy/  -M.             :M` -ysssssssdsssssssy                             `///////+y////////                      
                       ds``````````````mo  -M.             :M` :M.`````````````+M                             .M+/////////////oM`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds    `yyys     mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds    .MMMm     mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds    `///:     mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -MyyyyyyyyyyyyyyhM` :M`             /M                             .M.             -M`                     
                       oyyyyyyyyyyyyyyyy/           s.         -yyyyyyyyyyyyyyyyy                             .MhyyyyyyyyyyyyyhM`                     
                                                    /`                                                                                                ''')
    
    if currentroom == "hall":
      print('''  -yyyyyyyyyyyyyyyyy   oyyyyyyyyyyyyyyyy/  .yyyyyyyyyyyyyyyyy`                                                         o.                             
  /M              +N   ds              mo  -M.             :M`                             /////////////////` `////////h+///////    :////////////////.
  /M              +N   ds              mo  -M.             :M`                            `Mo/////////////+M- .M+/////////////oM`   Ns//////////////M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N:::ms              my//+M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N```ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M``````````````oN   ds``````````````mo  -M-`````````````/M`                            `M:             .M- .M.             -M`   N+              M/
  -yssssssssssssssss   oyssssssyhssssssy/  .ysssssssdsssssssy`                            `M:             .M- .M.             -M////N+              M/
                               .o                   s`                                    `myssssssssssssssm. .M.             -M`   N+              M/
                       `.......-s.......`   ........y-.......   .................          ........o:.......  .M.             -M`   N+              M/
                       yhsssssssyssssssm+  .msssssssyssssssym` :mssssssssssssssym          ........o:.......  .M.             -M:---N+              M/
                       ds              mo  -M.             :M` :M`             /M         `myssssssssssssssm. .M.             -M-...N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              mo  -M.             :M-./M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              my//+M.             :M:-+M`             /M         `M:             .M:.:M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M/-/M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       dh//////////////No  -M.    -///.    :M` :M//////////////sM         `M:             .M- .M:............./M`   No..............M/
                       :///////+h///////.  -M.    sMMM+    :M` `////////d////////         `Mo/////////////+M- `yssssssyhsssssssy`   ysssssssssssssssy-
                               .o          -M.    /yyy:    :M`          y                  /////////////////`         -o                              
                       oyssssssyhssssssy/  -M.             :M` -ysssssssdsssssssy                             `///////+y////////                      
                       ds``````````````mo  -M.             :M` :M.`````````````+M                             .M+/////////////oM`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -MyyyyyyyyyyyyyyhM` :M`             /M                             .M.             -M`                     
                       oyyyyyyyyyyyyyyyy/           s.         -yyyyyyyyyyyyyyyyy                             .MhyyyyyyyyyyyyyhM`                     
                                                    /`                                                                                                ''')
    
    if currentroom == "study":
      print('''  -yyyyyyyyyyyyyyyyy   oyyyyyyyyyyyyyyyy/  .yyyyyyyyyyyyyyyyy`                                                         o.                             
  /M              +N   ds              mo  -M.             :M`                             /////////////////` `////////h+///////    :////////////////.
  /M              +N   ds              mo  -M.             :M`                            `Mo/////////////+M- .M+/////////////oM`   Ns//////////////M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N:::ms              my//+M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N```ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M``````````````oN   ds``````````````mo  -M-`````````````/M`                            `M:             .M- .M.             -M`   N+              M/
  -yssssssssssssssss   oyssssssyhssssssy/  .ysssssssdsssssssy`                            `M:             .M- .M.             -M////N+              M/
                               .o                   s`                                    `myssssssssssssssm. .M.             -M`   N+              M/
                       `.......-s.......`   ........y-.......   .................          ........o:.......  .M.             -M`   N+              M/
                       yhsssssssyssssssm+  .msssssssyssssssym` :mssssssssssssssym          ........o:.......  .M.             -M:---N+              M/
                       ds              mo  -M.             :M` :M`             /M         `myssssssssssssssm. .M.             -M-...N+              M/
                       ds              mo  -M.             :M` :M`    `...`    /M         `M:             .M- .M.             -M`   N+              M/
                       ds              mo  -M.             :M-./M`    smmm:    /M         `M:             .M- .M.             -M`   N+              M/
                       ds              my//+M.             :M:-+M`    smmm:    /M         `M:             .M:.:M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`    `...`    /M         `M:             .M/-/M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       dh//////////////No  -M.             :M` :M//////////////sM         `M:             .M- .M:............./M`   No..............M/
                       :///////+h///////.  -M.             :M` `////////d////////         `Mo/////////////+M- `yssssssyhsssssssy`   ysssssssssssssssy-
                               .o          -M.             :M`          y                  /////////////////`         -o                              
                       oyssssssyhssssssy/  -M.             :M` -ysssssssdsssssssy                             `///////+y////////                      
                       ds``````````````mo  -M.             :M` :M.`````````````+M                             .M+/////////////oM`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -MyyyyyyyyyyyyyyhM` :M`             /M                             .M.             -M`                     
                       oyyyyyyyyyyyyyyyy/           s.         -yyyyyyyyyyyyyyyyy                             .MhyyyyyyyyyyyyyhM`                     
                                                    /`                                                                                                ''')
   
    if currentroom == "filing room":
      print('''  -yyyyyyyyyyyyyyyyy   oyyyyyyyyyyyyyyyy/  .yyyyyyyyyyyyyyyyy`                                                         o.                             
  /M              +N   ds              mo  -M.             :M`                             /////////////////` `////////h+///////    :////////////////.
  /M              +N   ds              mo  -M.             :M`                            `Mo/////////////+M- .M+/////////////oM`   Ns//////////////M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N:::ms              my//+M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N```ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M``````````````oN   ds``````````````mo  -M-`````````````/M`                            `M:             .M- .M.             -M`   N+              M/
  -yssssssssssssssss   oyssssssyhssssssy/  .ysssssssdsssssssy`                            `M:             .M- .M.             -M////N+              M/
                               .o                   s`                                    `myssssssssssssssm. .M.             -M`   N+              M/
                       `.......-s.......`   ........y-.......   .................          ........o:.......  .M.             -M`   N+              M/
                       yhsssssssyssssssm+  .msssssssyssssssym` :mssssssssssssssym          ........o:.......  .M.             -M:---N+              M/
                       ds              mo  -M.             :M` :M`             /M         `myssssssssssssssm. .M.             -M-...N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              mo  -M.             :M-./M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              my//+M.             :M:-+M`             /M         `M:             .M:.:M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M/-/M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       dh//////////////No  -M.             :M` :M//////////////sM         `M:             .M- .M:............./M`   No..............M/
                       :///////+h///////.  -M.             :M` `////////d////////         `Mo/////////////+M- `yssssssyhsssssssy`   ysssssssssssssssy-
                               .o          -M.             :M`          y                  /////////////////`         -o                              
                       oyssssssyhssssssy/  -M.             :M` -ysssssssdsssssssy                             `///////+y////////                      
                       ds``````````````mo  -M.             :M` :M.`````````````+M                             .M+/////////////oM`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`    +yyy-    /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`    yMMM/    /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`    -///.    /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -MyyyyyyyyyyyyyyhM` :M`             /M                             .M.             -M`                     
                       oyyyyyyyyyyyyyyyy/           s.         -yyyyyyyyyyyyyyyyy                             .MhyyyyyyyyyyyyyhM`                     
                                                    /`                                                                                                ''')
  
    if currentroom == "upstairs hall":
      print('''  -yyyyyyyyyyyyyyyyy   oyyyyyyyyyyyyyyyy/  .yyyyyyyyyyyyyyyyy`                                                         o.                             
  /M              +N   ds              mo  -M.             :M`                             /////////////////` `////////h+///////    :////////////////.
  /M              +N   ds              mo  -M.             :M`                            `Mo/////////////+M- .M+/////////////oM`   Ns//////////////M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N:::ms              my//+M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N```ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M``````````````oN   ds``````````````mo  -M-`````````````/M`                            `M:             .M- .M.             -M`   N+              M/
  -yssssssssssssssss   oyssssssyhssssssy/  .ysssssssdsssssssy`                            `M:             .M- .M.             -M////N+              M/
                               .o                   s`                                    `myssssssssssssssm. .M.    .///.    -M`   N+              M/
                       `.......-s.......`   ........y-.......   .................          ........o:.......  .M.    oMMM+    -M`   N+              M/
                       yhsssssssyssssssm+  .msssssssyssssssym` :mssssssssssssssym          ........o:.......  .M.    /yyy:    -M:---N+              M/
                       ds              mo  -M.             :M` :M`             /M         `myssssssssssssssm. .M.             -M-...N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              mo  -M.             :M-./M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              my//+M.             :M:-+M`             /M         `M:             .M:.:M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M/-/M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       dh//////////////No  -M.             :M` :M//////////////sM         `M:             .M- .M:............./M`   No..............M/
                       :///////+h///////.  -M.             :M` `////////d////////         `Mo/////////////+M- `yssssssyhsssssssy`   ysssssssssssssssy-
                               .o          -M.             :M`          y                  /////////////////`         -o                              
                       oyssssssyhssssssy/  -M.             :M` -ysssssssdsssssssy                             `///////+y////////                      
                       ds``````````````mo  -M.             :M` :M.`````````````+M                             .M+/////////////oM`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -MyyyyyyyyyyyyyyhM` :M`             /M                             .M.             -M`                     
                       oyyyyyyyyyyyyyyyy/           s.         -yyyyyyyyyyyyyyyyy                             .MhyyyyyyyyyyyyyhM`                     
                                                    /`                                                                                                ''')
   
    if currentroom == "bedroom":
      print('''  -yyyyyyyyyyyyyyyyy   oyyyyyyyyyyyyyyyy/  .yyyyyyyyyyyyyyyyy`                                                         o.                             
  /M              +N   ds              mo  -M.             :M`                             /////////////////` `////////h+///////    :////////////////.
  /M              +N   ds              mo  -M.             :M`                            `Mo/////////////+M- .M+/////////////oM`   Ns//////////////M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N:::ms              my//+M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N```ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M``````````````oN   ds``````````````mo  -M-`````````````/M`                            `M:             .M- .M.             -M`   N+              M/
  -yssssssssssssssss   oyssssssyhssssssy/  .ysssssssdsssssssy`                            `M:             .M- .M.             -M////N+              M/
                               .o                   s`                                    `myssssssssssssssm. .M.             -M`   N+              M/
                       `.......-s.......`   ........y-.......   .................          ........o:.......  .M.             -M`   N+              M/
                       yhsssssssyssssssm+  .msssssssyssssssym` :mssssssssssssssym          ........o:.......  .M.             -M:---N+              M/
                       ds              mo  -M.             :M` :M`             /M         `myssssssssssssssm. .M.             -M-...N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              mo  -M.             :M-./M`             /M         `M:    `...`    .M- .M.             -M`   N+              M/
                       ds              my//+M.             :M:-+M`             /M         `M:    /mmmo    .M:.:M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:    /mmmo    .M/-/M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:    `...`    .M- .M.             -M`   N+              M/
                       dh//////////////No  -M.             :M` :M//////////////sM         `M:             .M- .M:............./M`   No..............M/
                       :///////+h///////.  -M.             :M` `////////d////////         `Mo/////////////+M- `yssssssyhsssssssy`   ysssssssssssssssy-
                               .o          -M.             :M`          y                  /////////////////`         -o                              
                       oyssssssyhssssssy/  -M.             :M` -ysssssssdsssssssy                             `///////+y////////                      
                       ds``````````````mo  -M.             :M` :M.`````````````+M                             .M+/////////////oM`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -MyyyyyyyyyyyyyyhM` :M`             /M                             .M.             -M`                     
                       oyyyyyyyyyyyyyyyy/           s.         -yyyyyyyyyyyyyyyyy                             .MhyyyyyyyyyyyyyhM`                     
                                                    /`                                                                                                ''')
    
    if currentroom == "bathroom":
      print('''  -yyyyyyyyyyyyyyyyy   oyyyyyyyyyyyyyyyy/  .yyyyyyyyyyyyyyyyy`                                                         o.                             
  /M              +N   ds              mo  -M.             :M`                             /////////////////` `////////h+///////    :////////////////.
  /M              +N   ds              mo  -M.             :M`                            `Mo/////////////+M- .M+/////////////oM`   Ns//////////////M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N:::ms              my//+M.             :M`                            `M:    .///-    .M- .M.             -M`   N+              M/
  /M              +N```ds              mo  -M.             :M`                            `M:    +MMMs    .M- .M.             -M`   N+              M/
  /M              +N   ds              mo  -M.             :M`                            `M:    :yyy/    .M- .M.             -M`   N+              M/
  /M``````````````oN   ds``````````````mo  -M-`````````````/M`                            `M:             .M- .M.             -M`   N+              M/
  -yssssssssssssssss   oyssssssyhssssssy/  .ysssssssdsssssssy`                            `M:             .M- .M.             -M////N+              M/
                               .o                   s`                                    `myssssssssssssssm. .M.             -M`   N+              M/
                       `.......-s.......`   ........y-.......   .................          ........o:.......  .M.             -M`   N+              M/
                       yhsssssssyssssssm+  .msssssssyssssssym` :mssssssssssssssym          ........o:.......  .M.             -M:---N+              M/
                       ds              mo  -M.             :M` :M`             /M         `myssssssssssssssm. .M.             -M-...N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              mo  -M.             :M-./M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              my//+M.             :M:-+M`             /M         `M:             .M:.:M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M/-/M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       dh//////////////No  -M.             :M` :M//////////////sM         `M:             .M- .M:............./M`   No..............M/
                       :///////+h///////.  -M.             :M` `////////d////////         `Mo/////////////+M- `yssssssyhsssssssy`   ysssssssssssssssy-
                               .o          -M.             :M`          y                  /////////////////`         -o                              
                       oyssssssyhssssssy/  -M.             :M` -ysssssssdsssssssy                             `///////+y////////                      
                       ds``````````````mo  -M.             :M` :M.`````````````+M                             .M+/////////////oM`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -MyyyyyyyyyyyyyyhM` :M`             /M                             .M.             -M`                     
                       oyyyyyyyyyyyyyyyy/           s.         -yyyyyyyyyyyyyyyyy                             .MhyyyyyyyyyyyyyhM`                     
                                                    /`                                                                                                ''')
   
    if currentroom == "storage room":
      print('''  -yyyyyyyyyyyyyyyyy   oyyyyyyyyyyyyyyyy/  .yyyyyyyyyyyyyyyyy`                                                         o.                             
  /M              +N   ds              mo  -M.             :M`                             /////////////////` `////////h+///////    :////////////////.
  /M              +N   ds              mo  -M.             :M`                            `Mo/////////////+M- .M+/////////////oM`   Ns//////////////M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N:::ms              my//+M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N```ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M``````````````oN   ds``````````````mo  -M-`````````````/M`                            `M:             .M- .M.             -M`   N+              M/
  -yssssssssssssssss   oyssssssyhssssssy/  .ysssssssdsssssssy`                            `M:             .M- .M.             -M////N+              M/
                               .o                   s`                                    `myssssssssssssssm. .M.             -M`   N+              M/
                       `.......-s.......`   ........y-.......   .................          ........o:.......  .M.             -M`   N+              M/
                       yhsssssssyssssssm+  .msssssssyssssssym` :mssssssssssssssym          ........o:.......  .M.             -M:---N+              M/
                       ds              mo  -M.             :M` :M`             /M         `myssssssssssssssm. .M.             -M-...N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              mo  -M.             :M-./M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              my//+M.             :M:-+M`             /M         `M:             .M:.:M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M/-/M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       dh//////////////No  -M.             :M` :M//////////////sM         `M:             .M- .M:............./M`   No..............M/
                       :///////+h///////.  -M.             :M` `////////d////////         `Mo/////////////+M- `yssssssyhsssssssy`   ysssssssssssssssy-
                               .o          -M.             :M`          y                  /////////////////`         -o                              
                       oyssssssyhssssssy/  -M.             :M` -ysssssssdsssssssy                             `///////+y////////                      
                       ds``````````````mo  -M.             :M` :M.`````````````+M                             .M+/////////////oM`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.    ````     -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.    oNNN+    -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.    oNNN+    -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.     ```     -M`                     
                       ds              mo  -MyyyyyyyyyyyyyyhM` :M`             /M                             .M.             -M`                     
                       oyyyyyyyyyyyyyyyy/           s.         -yyyyyyyyyyyyyyyyy                             .MhyyyyyyyyyyyyyhM`                     
                                                    /`                                                                                                ''')
   
    if currentroom == "library":
      print('''  -yyyyyyyyyyyyyyyyy   oyyyyyyyyyyyyyyyy/  .yyyyyyyyyyyyyyyyy`                                                         o.                             
  /M              +N   ds              mo  -M.             :M`                             /////////////////` `////////h+///////    :////////////////.
  /M              +N   ds              mo  -M.             :M`                            `Mo/////////////+M- .M+/////////////oM`   Ns//////////////M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N:::ms              my//+M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N```ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M              +N   ds              mo  -M.             :M`                            `M:             .M- .M.             -M`   N+              M/
  /M``````````````oN   ds``````````````mo  -M-`````````````/M`                            `M:             .M- .M.             -M`   N+              M/
  -yssssssssssssssss   oyssssssyhssssssy/  .ysssssssdsssssssy`                            `M:             .M- .M.             -M////N+              M/
                               .o                   s`                                    `myssssssssssssssm. .M.             -M`   N+     -///.    M/
                       `.......-s.......`   ........y-.......   .................          ........o:.......  .M.             -M`   N+     yMMM/    M/
                       yhsssssssyssssssm+  .msssssssyssssssym` :mssssssssssssssym          ........o:.......  .M.             -M:---N+     +yyy-    M/
                       ds              mo  -M.             :M` :M`             /M         `myssssssssssssssm. .M.             -M-...N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              mo  -M.             :M-./M`             /M         `M:             .M- .M.             -M`   N+              M/
                       ds              my//+M.             :M:-+M`             /M         `M:             .M:.:M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M/-/M.             -M`   N+              M/
                       ds              mo  -M.             :M` :M`             /M         `M:             .M- .M.             -M`   N+              M/
                       dh//////////////No  -M.             :M` :M//////////////sM         `M:             .M- .M:............./M`   No..............M/
                       :///////+h///////.  -M.             :M` `////////d////////         `Mo/////////////+M- `yssssssyhsssssssy`   ysssssssssssssssy-
                               .o          -M.             :M`          y                  /////////////////`         -o                              
                       oyssssssyhssssssy/  -M.             :M` -ysssssssdsssssssy                             `///////+y////////                      
                       ds``````````````mo  -M.             :M` :M.`````````````+M                             .M+/////////////oM`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -M.             :M` :M`             /M                             .M.             -M`                     
                       ds              mo  -MyyyyyyyyyyyyyyhM` :M`             /M                             .M.             -M`                     
                       oyyyyyyyyyyyyyyyy/           s.         -yyyyyyyyyyyyyyyyy                             .MhyyyyyyyyyyyyyhM`                     
                                                    /`                                                                                                ''')
 

#If you want to GO somewhere
  if "go" in answer:
    if "east" in answer and "east" in rooms[currentroom]:
      currentroom = rooms[currentroom]["east"]
      status()      
    elif "west" in answer and "west" in rooms[currentroom]:
      currentroom = rooms[currentroom]["west"]
      status()      
    elif "south" in answer and "south" in rooms[currentroom]:
      currentroom = rooms[currentroom]["south"]
      status()      
    elif "north" in answer and "north" in rooms[currentroom]:
      currentroom = rooms[currentroom]["north"]
      status() 
    else:
      print((red)+"Sorry I don't understand."+(normal))  


#If you want to EXAMINE certain objects, some items picked up from examination:
  elif "examine" in answer:
    #Room [T2]
    #Drawers
    if "drawers" in answer and "object" in rooms[currentroom]:
      print("You see a key in the drawers")
        
    #Room [Initial Room]
    #button on the wall
    elif "button" in answer and "object" in rooms[currentroom]: 
      print('''You see a button on the wall, you press it unreasonably fast.
Nothing happens...''')

    #Room [Basement Area]
    #vent
    elif "vent" in answer and "vent" in rooms[currentroom]['object1']:
      print("It\'s a vent, nothing more, nothing less. All houses have \'em")

    #Room [Kitchen]
    #open pipe
    elif ("open" and "pipe") in answer and "open pipe" in rooms[currentroom]['object']:
      print('''---------------------------------------
There\'s a metal ''' +(yellow)+ "key " +(normal)+ 
'''wedged deep inside of the metal pipe.
I try to reach it, but my hand is to big for the pipe.
If only I had something long to grab the metal ''' +(yellow)+ "key" +(normal)+ 
'''!
---------------------------------------''')

    #Room [Pantry]
    #chest
    elif "chest" in answer and "chest" in rooms[currentroom]['object']:
      print("It\'s locked, although there must be a " +(yellow)+ "pantry chest key" +(normal)+  " somewhere around here.")
    
    #Room [Living Room]
    #caset player
    elif ("caset" and "player") in answer and "caset player" in rooms[currentroom]['object']:
      print("It\'s just a caset player, I don\'t think I'm going to need that.")
    
    #Room [Hall]
    #table
    elif "table" in answer and "table" in rooms[currentroom]['object']:
      print('''There's a ''' +(yellow)+ "note" +(normal)+  
''' laying on the table under a rock.
There is also a photo of a woman and a man, they're smiling.
There is a ''' +(red)+ "dark figure" +(normal)+  
''' close behind them.
The note reads:
Don't forget! The last two digits of the code to the safe are the last two digits of my wife's birth year!''')

    #Room [Study]
    #painting
    elif "painting" in answer and "painting" in rooms[currentroom]['object']:
      print('''It's a painting of Luke Wesselingh. The Man, The Myth, The Legend.
Underneath the painting a comment is writtten:
It\'s not Graaaaph! It\'s Graf!''')

    #Room [Secret Behind Painting]
    #safe
    elif "safe" in answer and "safe" in rooms[currentroom]['object']:
      print('''It's a large metal box, with a 6 digit
code to be inputed. Let's try it out.''')
      if input("What 6 numbers could it be? ") == "21 05 23":
        print('''The safe opened! A '''+(yellow)+ "magnet" +(normal)+ 
''' and ''' +(green)+ "$1000 dollars " +(normal)+
'''was inside.
I took the '''+(yellow)+
'''magnet...''' +(normal))
        if 'item' in rooms[currentroom]:
          inventory.append(rooms[currentroom]['item'])
          rooms[currentroom].pop('item',[ 0])
        
      else:
        print("That's not right, better look for some kind of reference.")
    
    #Room [Filing Room]
    #filing cabinet
    elif ("filing" and "cabinet") in answer and "filing cabinet" in rooms[currentroom]['object']:
        print('''It's locked, there's gotta be a '''+(yellow)+ "small key" +(normal)+ 
''' somewhere in this flaming place.
There is also a sticky note saying the safe code is my birthday,
but the numbers have been blurred out with a pen.''')

    #Room [Upstairs Hall]
    #Rack
    elif "rack" in answer and "rack" in rooms[currentroom]['object']:
      print("Other than an old bowlers hat and a scarf, there's a "+(yellow)+ "key" +(normal)+ " labled \'pantry chest\'")
      print("I took the "+(yellow)+ "key"+(normal)+"!")
      if 'item' in rooms[currentroom]:
        inventory.append(rooms[currentroom]['item'])
        rooms[currentroom].pop('item',[ 0])

    
    #Room [Bedroom]
    #cupboards
    elif "cupboard" in answer and "cupboard" in rooms[currentroom]['object']:
      print('''There's a leather jacket and a slim blue dress.
There's also a '''+(yellow)+ "caset tape" +(normal)+
''' in the jacket's pocket.
I took it. I wonder where I could play this.''')
      if 'item' in rooms[currentroom]:
        inventory.append(rooms[currentroom]['item'])
        rooms[currentroom].pop('item',[ 0])

  #Room [Bathroom]
  #medical cabinet
    elif ("medical" and "cabinet") in answer and "medical cabinet" in rooms[currentroom]['object']:
      print("It's locked if only there was a key...")
    
    #Room [Library]
    #bookcase
    elif "bookcase" in answer and "bookcase" in rooms[currentroom]['object']:
      print('''The book case is almost complete, it's got
the entire Wizzard Boy series and the Midgets and the Ring
series. There is only one book that's suspiciously missing.
What could that mean?''')
    
    #Room [Storage]
    #man
    elif "man" in answer and "man" in rooms[currentroom]['object']:
      print('''Even though you're fear him with all your heart, you
manage to have the guts to ask him about the chained sticks
next to him.
He replies with: Beat me you must, rocks papers and scissors
we play.''') 
      
      #Rock, Paper Scissors game that I made in other repl and inserted it into here     
      while True:
        #Asks for you choice
        you = input("Rock, paper or scissors? ").lower()
        #the man chooses
        man = random.choice(options)
        #The results   VVVVVVVV
        if you == "rock":
          if man == "rock":
            print("It's a draw!")
            
          if man == "scissors":
            print('''---------------------------------------
Alright, alright you win, congratulations.
If you want me to get you a '''+(yellow)+ 
'''stick''' +(normal)+ 
''', I need some '''+(yellow)+
'''pliers'''+(normal)+
''', 
I heard there's a secret behind the east bookcase in the
library, try looking for some in there.
---------------------------------------''')
            if manbook == 1:
             rooms['library']['east'] = 'bookcase room'
             break
            else:
              manbook = 1
              break
          if man == "paper":
            print("You lose!")
            break

        if you == "scissors":
          if man == "scissors":
            print("It's a draw!")
          
          if man == "paper":
            print('''---------------------------------------
Alright, alright you win, congratulations.
If you want me to get you a '''+(yellow)+ 
'''stick''' +(normal)+ 
''', I need some '''+(yellow)+
'''pliers'''+(normal)+
''', 
I heard there's a secret behind the east bookcase in the
library, try looking for some in there.
---------------------------------------''')
            if manbook == 1:
             rooms['library']['east'] = 'bookcase room'
             break
            else:
              manbook = 1
              break
          if man == "rock":
            print("You lose!")
            break

        if you == "paper":
          if man == "paper":
            print("It's a draw!")
          
          if man == "rock":
            print('''---------------------------------------
Alright, alright you win, congratulations.
If you want me to get you a '''+(yellow)+ 
'''stick''' +(normal)+ 
''', I need some '''+(yellow)+
'''pliers'''+(normal)+
''', 
I heard there's a secret behind the east bookcase in the
library, try looking for some in there.
---------------------------------------''')
            if manbook == 1:
             rooms['library']['east'] = 'bookcase room'
             break
            else:
              manbook = 1
              break
          if man == "scissors":
            print("You lose!")
            break
    
    #Room [Boss]
    #door
    elif "door" in answer and "door" in rooms[currentroom]['object']:
      print('''The ominous door appears to be locked. I try to force it open but it\'s not use.
The door gives me an uneasy feeling that this is the last place I want to be in.''')
      
    else:
      print((red)+"Sorry I don't understand."+(normal))


#If you want to GET certain items:
  if "get" in answer:

  #tutorial
    if "itemT" in rooms[currentroom]:

      if "key" in rooms[currentroom]['itemT']:
        inventory.append(rooms[currentroom]['itemT'])
        print("You got a "+(yellow)+ "key!"+(normal))

      #if "stick" in answer
      if "stick" in rooms[currentroom]['itemT']:
        inventory.append(rooms[currentroom]['itemT'])        
        print ("You got a "+(yellow)+ "stick!"+(normal))
  #It's inefficient but works. (Don't fix what's not broken.)

         
    #Visible items that show on the status:  
    #pliers in the secret book room
    elif "pliers" in answer and "pliers" in rooms[currentroom]['itemV']:
      inventory.append(rooms[currentroom]['itemV'])
      rooms[currentroom].pop('itemV',[ 0])
      print("You got "+(yellow)+ "pliers"+(normal)+"!")
    
    #screwdriver in the secret painting room
    elif "screwdriver" in answer and "screwdriver" in rooms[currentroom]['itemV']:
      inventory.append(rooms[currentroom]['itemV'])
      rooms[currentroom].pop('itemV',[ 0])
      print("You got "+(yellow)+ "screwdriver"+(normal)+"!")
    
    #medical cabinet key in the study
    elif ("medical" and "cabinet" and "key") in answer and "medical cabinet key" in rooms[currentroom]['itemV']:
      inventory.append(rooms[currentroom]['itemV'])
      rooms[currentroom].pop('itemV',[ 0])
      print("You got "+(yellow)+ "medical cabinet key"+(normal)+"!")



    elif "note" in answer and "note" in rooms[currentroom]['itemV']:
      if currentroom == "initial room":
        print('''It's a torn page from a newspaper. It reads:
...old couple arrested due to strong connections to multiple
mass murders and demonic rituals...
That's all the rest is torn out...''')
        #Don't remove notes because people can go and see them again and don't add to inventory.

      if currentroom == "boss":
        print('''The story of tomorrow, maybe a newspaper
        ''')
        
      if currentroom == "living room":
        print('''It's a newspaper as of yesterday, 2019. It reads:
Ol' Betty turns 96 today! Conspiracists say that her connections with
the devil are what\'s keeping her alive and well.''')
        
      if currentroom == "???":
        print('''In the final room you will be left with many decisions.
As a warning, these decisions can mean the difference between
life and death. Use logic to find out which decision is better.
The very first decision will always work but it gives three unique
messages for each one.
To unlock the best ending. At the final descision type: Let him be free.''' )
       
      if currentroom == "library":
        print('''There's a note from the man who lived here...
Hello dear, just a reminder that the '''+(yellow)+ 
'''north painting''' +(normal)+
''' in my study, holds my personal safe,
it has all the money you need. The code is your birthday. dd/mm/yy
The rest of the note has been scribbled over by pen.
Looks like I need to find his wife's birthday.''')
        rooms['study']['north'] = 'painting room'
        


    else:
      print((red)+"Sorry I don't understand."+(normal))


#If you want to COMBINE items:
  if "combine" in answer:
    #List of combinations

    #Long Key 
    if all(longkeyC):
      if rooms[currentroom]['use'] == 'long key':
        inventory.pop(inventory.index("key"))
        inventory.pop(inventory.index("stick"))
        inventory.append("long key")
        print ("You created \'long key\'")
      
    #magnetic stick
    elif all(magneticstickC):
      inventory.pop(inventory.index("magnet"))
      inventory.pop(inventory.index("stick"))
      inventory.append("magnetic stick")
      print ("You created "+(yellow)+" \'magnetic stick\'"+(normal))

    else:
      print((red)+"Sorry I don't understand."+(normal))  




#If you want to USE items:
  if "use" in answer:
    #List of item uses

    #Long Key
    if all(longkeyU):
      inventory.pop(inventory.index('long key'))
      tdoor = "open"

    #medical cabinet key
    elif all(medicalcabinetkeyU):
      print('''From left to right, there are painkillers,
bandages, a thermometer, a '''+(yellow)+
      '''note ''' +(normal)+
      '''and hand cream.''')
      print("I read the "+(yellow)+
      '''note ''' +(normal)+ "!")
      print('''It's just a picture of an inverse pentagram printed on a vent labled in the basement. 
Something tells me there's a strange evil lurking in this house... I hear it calling to me.''')
      inventory.pop(inventory.index('medical cabinet key'))
      
    #Pantry chest key  
    elif all(pantrychestkeyU):
      print("You use the pantry chest key on the chest.")
      inventory.pop(inventory.index("pantry chest key"))
      inventory.append("small key")
      print("*Click* It worked! Let\'s see what\'s inside!")
      print("You got a "+(yellow)+"small key"+(normal)+ "!")

    #small key
    elif all(smallkeyU):
      print("You use the small key on the filing cabinet. It clicks open!")
      inventory.pop(inventory.index("small key"))
      inventory.append("book")
      print("You found a "+(yellow)+"book"+(normal)+ "!")

    #caset  
    elif all(casetU):
      print("You insert the caset tape into the player under the TV. It starts:")
      inventory.pop(inventory.index("caset tape"))
      print('''Happy birthday to you, happy birthday to you, happy birthday
dear Betty. Happy birthday to youuuuuuuu. Hip hip, hooray!
The caset tape ends with the date stamp \'21/05/19--\'.
Why does that date seem important?''')

    #book
    elif all(bookU):
      print('''You place the book into the one gap in the bookcase. 
Something Clicks! But you do not know what''')
      inventory.pop(inventory.index("book"))
      if manbook == 1:
        rooms['library']['east'] = 'bookcase room'
      else:
        manbook = 1
        
    
    #pliers
    elif all(pliersU):
      print("You give the pliers to the old man. He replies with:")
      inventory.pop(inventory.index("pliers"))
      print('''Ah, thanks for the pliers now I can kill mys...
Oh here is the '''+(yellow)+
'''stick'''+(normal)+ 
''' you needed.''')
      inventory.append("stick")
      print ("You got a "+(yellow)+"stick"+(normal)+"!")

    #magnetic stick
    elif all(magneticstickU):
      print('''You use the magnetic stick to reach the metal key inside
the open pipe. It worked!!!.
You got a '''+(yellow)+
'''basement key'''+(normal))
      inventory.append("basement key")
      inventory.pop(inventory.index("magnetic stick"))
    
    #basement key
    elif all(basementkeyU):
      print('''With all your heart you place the key into the keyhole,
something evil is behind the door but your fear of the unknown
is no match for your brave soul.''')
      time.sleep(5)
      print("The door is open. You head south!")
      time.sleep(1)
      rooms['basement area']['south'] = 'boss'
      inventory.pop(inventory.index("basement key"))
      doorB = 1
    
    #screwdriver
    elif all(screwdriverU):
      print('''You use the screwdriver to open up the vent.
You can now crawl through the '''+(yellow)+ 
'''west vent'''+(normal))
      rooms['basement area']['west'] = '???'
    else:
      print((red)+"Sorry I don't understand."+(normal))














#Welcoming Party
print(((normal)+'''
---------------------------------------
Welcome to Basement Burg
This is an RPG made by '''+(green)+ 
'''Genis Mulaj ''' +(normal)+
'''(c)
SIDE NOTE: The game is much more fun if
you don't try to exploit it as much as
possible. Exploiting might cause you to
need to restart and will only ruin your
experience! Thanks! :)
---------------------------------------
''' +(redscary)+
'''Backstory:
'''+(normal)+
'''You are part of a police force in Peja, Kosovo.
An elderly couple report sightings of ''' +(blue)+
'''paranormal activities 
''' +(normal)+
'''in their neighbours house. But the house was reported empty,
and it is your job to go and investigate their house.
You plead to your captain to let someone else have the
job, but it's no use, you are the only one in the area 
that is avaliable. He sends you a map of the house on your phone,
he also says that it hasn't been updated so there might be other rooms.
It is your son's birthday and you don't want to miss it, so
you decide it is best if you try and get this over with.

---------------------------------------'''))
time.sleep(12) 

#IF you say no the tutorial will activate and is all under this if statement
while tutorial != ("yes" or "no" or "1923"):
  tutorial = input("Would you like to skip the tutorial? (yes/no) ").lower()
  if tutorial == "no":
    break
  if tutorial == "yes":
    break
  if tutorial == "1923":
    break
if tutorial == "no":
  print (''' 
 ______  __ __  ______   ___   ____   ____   ____  _           _____ ______   ____   ____    ___       ___   ____     ___ 
|      ||  |  ||      | /   \ |    \ |    | /    || |         / ___/|      | /    | /    |  /  _]     /   \ |    \   /  _]
|      ||  |  ||      ||     ||  D  ) |  | |  o  || |        (   \_ |      ||  o  ||   __| /  [_     |     ||  _  | /  [_ 
|_|  |_||  |  ||_|  |_||  O  ||    /  |  | |     || |___      \__  ||_|  |_||     ||  |  ||    _]    |  O  ||  |  ||    _]
  |  |  |  :  |  |  |  |     ||    \  |  | |  _  ||     |     /  \ |  |  |  |  _  ||  |_ ||   [_     |     ||  |  ||   [_ 
  |  |  |     |  |  |  |     ||  .  \ |  | |  |  ||     |     \    |  |  |  |  |  ||     ||     |    |     ||  |  ||     |
  |__|   \__,_|  |__|   \___/ |__|\_||____||__|__||_____|      \___|  |__|  |__|__||___,_||_____|     \___/ |__|__||_____|
                                                                                                                         ''')
  print ('''---------------------------------------
Welcome to the tutorial!
This is part 1 of a 3 part tutorial.
In this section you will learn how the moving mechanic works.
Type in the command "go north" in the "command prompt".
''')
  command_game()

  #IF the room is not where you're meant to be it will force some actions and restart you in the room you began with.
  while currentroom != "FR":
    currentroom = "T1"
    print ((red)+"I  said  north! "+(normal))
    command_game()  

  #If you go into the proper room the above code will not happen but instead iwll carry on to the code below.

  if currentroom == "FR":
      print('''---------------------------------------
Beautiful you have learned this basic movement command. 
This command uses the keywords ''' +(yellow)+
'''Go (Direction from North, South, East, West).
'''+(normal)+ 
'''As long as these words are written somewhere in your sentence
your command will always work.
---------------------------------------
Try writing \'I want to go south at some point in my life\'.''')
  command_game()
  while currentroom != "T1":
    currentroom = "FR"
    print ((red)+"I  said  south! "+(normal))
    command_game()
  
  if currentroom == "T1":
    print('''---------------------------------------
Nice work! Continue on East.
---------------------------------------''')
  while currentroom != "T2":
    command_game()
  
  if currentroom == "T2":
    print(''' ______  __ __  ______   ___   ____   ____   ____  _           _____ ______   ____   ____    ___      ______  __    __   ___  
|      ||  |  ||      | /   \ |    \ |    | /    || |         / ___/|      | /    | /    |  /  _]    |      ||  |__|  | /   \ 
|      ||  |  ||      ||     ||  D  ) |  | |  o  || |        (   \_ |      ||  o  ||   __| /  [_     |      ||  |  |  ||     |
|_|  |_||  |  ||_|  |_||  O  ||    /  |  | |     || |___      \__  ||_|  |_||     ||  |  ||    _]    |_|  |_||  |  |  ||  O  |
  |  |  |  :  |  |  |  |     ||    \  |  | |  _  ||     |     /  \ |  |  |  |  _  ||  |_ ||   [_       |  |  |  `  '  ||     |
  |  |  |     |  |  |  |     ||  .  \ |  | |  |  ||     |     \    |  |  |  |  |  ||     ||     |      |  |   \      / |     |
  |__|   \__,_|  |__|   \___/ |__|\_||____||__|__||_____|      \___|  |__|  |__|__||___,_||_____|      |__|    \_/\_/   \___/ 
                                                                                                                              ''')

    print('''---------------------------------------
Welcome to stage two! Glad to still have you.
This next tutorial is about the command ''' +(yellow)+
'''Examine and Get.
''' +(normal)+
'''---------------------------------------
In the room you are in right now there are some ''' +(yellow)+
'''drawers, 
''' 
+(normal)+ '''try using the examine command to check what's inside the ''' 
+(yellow)+ 
'''drawers.
'''
+(normal)+
'''The command should look something like:
examine drawers
---------------------------------------''')
  
  command_game()
  #While the command is not examine drawers it tells you what to write as a reminder
  while not "examine" in answer and not "drawers" in answer:
    print("No, I said \'examine drawers\'")
    command_game()
  #continues when the answer is equal to examine drawers
  if "examine" in answer and "drawers" in answer:
    print ('''---------------------------------------
Nice work, now that you see a key type \'get key\' to get the '''+(yellow)+ 
'''key''' +(normal)+
''' in the drawers.
---------------------------------------''') 

  command_game()
  #Checks if the key is in their inventory if it isn't it waits until it is
  while not "key" in inventory:
    
    print("Get the "+(yellow)+"key"+(normal))
    command_game()

  if "key" in inventory:
    print ('''---------------------------------------
Good job now that you have a ''' +(yellow)+ 
'''key '''+(normal)+
'''move onto the next room
using the movement command. (Go East)''')
  command_game()
  while currentroom != "T3":
    currentroom = "T2"
    print ("Go east")
    command_game()

  #Coding for room T3----------------------------------------------------------------
  if currentroom == "T3":
    print (''' ______  __ __  ______   ___   ____   ____   ____  _           _____ ______   ____   ____    ___      ______  __ __  ____     ___    ___ 
|      ||  |  ||      | /   \ |    \ |    | /    || |         / ___/|      | /    | /    |  /  _]    |      ||  |  ||    \   /  _]  /  _]
|      ||  |  ||      ||     ||  D  ) |  | |  o  || |        (   \_ |      ||  o  ||   __| /  [_     |      ||  |  ||  D  ) /  [_  /  [_ 
|_|  |_||  |  ||_|  |_||  O  ||    /  |  | |     || |___      \__  ||_|  |_||     ||  |  ||    _]    |_|  |_||  _  ||    / |    _]|    _]
  |  |  |  :  |  |  |  |     ||    \  |  | |  _  ||     |     /  \ |  |  |  |  _  ||  |_ ||   [_       |  |  |  |  ||    \ |   [_ |   [_ 
  |  |  |     |  |  |  |     ||  .  \ |  | |  |  ||     |     \    |  |  |  |  |  ||     ||     |      |  |  |  |  ||  .  \|     ||     |
  |__|   \__,_|  |__|   \___/ |__|\_||____||__|__||_____|      \___|  |__|  |__|__||___,_||_____|      |__|  |__|__||__|\_||_____||_____|
                                                                                                                                         ''')
  print('''---------------------------------------
This is the last stage of the tutorial.
In this stage you will learn the combine command
and the use command.
In the room there is a '''+(yellow)+ 
'''stick'''+(normal)+ 
''', why don't you pick it up?
Use the command you learned in the last room.
---------------------------------------''')

  #Waits until you pick up the stick
  while not "stick" in inventory:
    print ("Pick up the "+(yellow)+ "stick " +(normal)+ "the command should be \'get "+(yellow)+ "stick" +(normal)+ "\'.")
    command_game()

  #When you take stick code continues
  if "stick" in inventory:
    print ('''---------------------------------------
Nicely done! Now we can try out the new command. 
The combine command acquires two items of your choosing, 
if they can be combined they will, otherwise they will 
remain the same and you\'ll be given a message saying 
that won\'t work.
Try the command now and combine your \''''+(yellow)+ 
'''key''' +(normal)+
'''\' with the \''''+(yellow)+ 
'''stick''' +(normal)+
'''' you just got.
Simply type combine [item] with [item].
The order of items doesn't matter.
---------------------------------------''')
  command_game()
  
  while not "long key" in inventory:
    print("Combine the two items. \'combine key with stick\'.")
    command_game()
  
  if "long key" in inventory:
    print('''---------------------------------------
Congratulations, you created a long key.
Now we move onto the use command. Simply type what
item you want to use and if it can be used in the 
room it will work otherwise it will tell you that 
it won\'t work.
Use the '''+(yellow)+
  '''long key.
'''+(normal)+
'''The command should look like \'use long key\'.
---------------------------------------''')
  command_game()
  while tdoor != "open":
    print("Use the long key")
    currentroom = "T3"
    command_game()
  if tdoor == "open":
    print ('''---------------------------------------'''+(yellow)+
'''Bravo that concludes the last stage of the
tutorial. You\'re on your own now, I wish you all the
best and enjoy the game!
On a side note you may type 'map' into your command prompt
to access a live map of where you are if you get lost.'''+(normal)+
'''---------------------------------------''')
  currentroom = "initial room"
  status()
elif tutorial == "yes":
  print('''---------------------------------------
Alrighty then if you don't want my help good luck beating the game! 
Enjoy the game!
As a side note, if you type map in the command prompt you will be given a live map.
More notes = more tips''')
  currentroom = "initial room"
  status()

elif tutorial == "1923":
  doorB = 1

#This is the section where the game actually starts!


while win == 0:
  while doorB == 0:
    command_game()
    if doorB == 1:
      break
  
  print((red)+'''                            ,-.                               
       ___,---.__          /'|`\          __,---,___          
    ,-'    \`    `-.____,-'  |  `-.____,-'    //    `-.       
  ,'        |           ~'\     /`~           |        `.      
 /      ___//              `. ,'          ,  , \___      \    
|    ,-'   `-.__   _         |        ,    __,-'   `-.    |    
|   /          /\_  `   .    |    ,      _/\          \   |   
\  |           \ \`-.___ \   |   / ___,-'/ /           |  /  
 \  \           | `._   `\\\  |  //'   _,' |           /  /      
  `-.\         /'  _ `---'' , . ``---' _  `\         /,-'     
     ``       /     \    ,='/ \`=.    /     \       ''          
             |__   /|\_,--.,-.--,--._/|\   __|                  
             /  `./  \\\`\ |  |  | /,//' \,'  \                  
            /   /     ||--+--|--+-/-|     \   \                 
           |   |     /'\_\_\ | /_/_/`\     |   |                
            \   \__, \_     `~'     _/ .__/   /            
             `-._,-'   `-._______,-'   `-._,-'
             '''+(normal))
  print((red)+'''Ah, how pathetic you are. You think you can barge in here and try to make everything right.
I. Burg. Son of Hinden. Master of St Elmo's fire. Releaser of all things hydrogen. Will destroy you!
You'll regret the day you ever took foot into this house! Prepare yourself for this. Is.
♫ THE FINAL COUNTDOWN ♫
HERE I COME.''')
  time.sleep(17)
  while gif <= 10:
    time.sleep(0.3)
    print ('''                            ,-.                               
       ___,---.__          /'|`\          __,---,___          
    ,-'    \`    `-.____,-'  |  `-.____,-'    //    `-.       
  ,'        |           ~'\     /`~           |        `.      
 /      ___//              `. ,'          ,  , \___      \    
|    ,-'   `-.__   _         |        ,    __,-'   `-.    |    
|   /          /\_  `   .    |    ,      _/\          \   |   
\  |           \ \`-.___ \   |   / ___,-'/ /           |  /  
 \  \           | `._   `\\\  |  //'   _,' |           /  /      
  `-.\         /'  _ `---'' , . ``---' _  `\         /,-'     
     ``       /     \    ,='/ \`=.    /     \       ''          
             |__   /|\_,--.,-.--,--._/|\   __|                  
             /  `./  \\\`\ |  |  | /,//' \,'  \                  
            /   /     ||--+--|--+-/-|     \   \                 
           |   |     /'\_\_\ | /_/_/`\     |   |                
            \   \__, \_     `~'     _/ .__/   /            
             `-._,-'   `-._______,-'   `-._,-'
             
             





             ''')
    time.sleep(0.3)
    print ('''                            ,-.                               
       ___,---.__          /'|`\          __,---,___          
    ,-'    \`    `-.____,-'  |  `-.____,-'    //    `-.       
  ,'        |           ~'\     /`~           |        `.      
 /      ___//              `. ,'          ,  , \___      \    
|    ,-'   `-.__   _         |        ,    __,-'   `-.    |    
|   /          /\_  `   .    |    ,      _/\          \   |   
\  |           \ \`-.___ \   |   / ___,-'/ /           |  /  
 \  \           | `._   `\\\  |  //'   _,' |           /  /      
  `-.\         /'  _ `---'' , . ``---' _  `\         /,-'     
     ``       /     \    ,='/ \`=.    /     \       ''          
             |__   /|\_,--.,-.--,--._/|\   __|                  
             /  `./  \\\`\ |  |  | /,//' \,'  \                  
            /   /                         \   \                 
           |   |                           |   |                
            \   \__, /'\_\_\ | /_/_/`\ .__/   /            
             `-._,-' \_     `~'     _/ `-._,-'
                       `-._______,-'
            
             




             ''')
    gif += 1

  print((green)+'''---------------------------------------

Burg smashes the ground infront of him, while yelling you're ugly! Rocks come flying straight towards you!

---------------------------------------'''+(normal))



  while choice1 != "right" or "under" or "over":
    choice1 = input('''---------------------------------------
Do you dodge...  Right?   Under?   Over?
---------------------------------------
Choice>>> ''').lower()
    
    if choice1 ==  "right":
      print('''---------------------------------------
You jump to the right of the rocks and land on some barrels.
Other than your hurt feelings, you are fine.''')
      time.sleep(4)
      break

    if choice1 ==  "under":
      print('''---------------------------------------
You slide under the rocks and graze your elbows.
Other than your hurt feelings, you are fine.''')
      time.sleep(4)
      break

    if choice1 ==  "over":
      print('''---------------------------------------
You jump over the rocks and you hit your head on the ceiling.
Other than your hurt feelings, you are fine.''')
      time.sleep(4)
      break






  print('''---------------------------------------
*I run back to my original position*
You: Why are you doing this?! What do you gain from this?! ''')
  time.sleep(3.5)
  print('''---------------------------------------
'''+(red)+
'''Burg: You shouldn't have taken them! You should've left them right where they were!
      We were almsot done! I would've been free!
      AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH'''+(normal))
  time.sleep(5.2)
  print((green)+'''---------------------------------------
Burg is releasing gas into the atmosphere, his face burning with rage as he empties himself out.
---------------------------------------'''+(normal))
  





  while choice2 != ("Get the gas mask on the floor" or "Take cover behind the metal table"):
    choice2 = input('''---------------------------------------

What do you do...  Get the gas mask on the floor?   Take cover behind the metal table?

---------------------------------------
Choice>>> ''').lower()
    if choice2 == "take cover behind the metal table":
      print('''You take cover behind the table, good thing too. Burg suddenly sparks the gas.
A giant explosion comes straight towards you. Luckily, the metal table blocked the explosion
and you were safe from death.
---------------------------------------''')
      time.sleep(10)
      break
    if choice2 == "get the gas mask on the floor":
      print('''You run to get the gas mask. You hurringly place it on your face.
There is a message inside the mask: 'to get to the boss again simply type 1923
when the game asks whether you want to skip the tutorial'.
Burg sparks the hydrogen gas and the entire room explodes, the explosion rushes
towards you tearing away at your skin.
---------------------------------------''')
      time.sleep(13)
      win = 2
      break
  if win == 2:
    break



    
  print('''---------------------------------------
You:  Stop this, we can work something out! There has to be a better way than
      violence! What do you need to become free?''')
  time.sleep(7)
  print('''---------------------------------------
'''+(red)+
'''Burg:   It's too late for that I have nothing to be free for, you took my only
        way to escape this dreaded place and leave for the afterlife. You and all
        your other patrol buddies will go to hell, with or without me. With my 
        powers you shall never escape and I will make you suffer for as long
        as I'm alive.'''+(normal))
  time.sleep(19)
  print("*Suddenly the room goes quiet*")
  time.sleep(2)
  print("...")
  time.sleep(2)
  print((red)+"Burg:    What's happening?"+(normal))
  time.sleep(2)
  print((blue)+'''???:    Oh Burg you always were an interesting character.
        Leave the poor man alone. He needn't get involved with our fun.'''+(normal))
  time.sleep(5)
  print((red)+'''Burg:    Betty stay out of this! This is between me and the blue pyjama man.'''+(normal))
  time.sleep(3.5)
  print((green)+'''---------------------------------------
Burg launches his arms at you and grabs you tightly. You are stuck in his arms.
---------------------------------------'''+(normal))
        



  while choice3 != ("accept your fate and die" or "struggle out of his grip" or "ask betty to do something"):
    choice3 = input('''---------------------------------------
    
What do you do?  Accept your fate and die?   Struggle out of his grip?   Ask Betty to do something?
    
---------------------------------------
Choice>>> ''')
    if choice3 == "accept your fate and die":
      print('''You decide to take one for the team. On behalf of all of your
fellow blue pyjama men, you allow Burg to crush you. The painfulness
of the spirit's demonic hands crush your bones to the point where you
become paralyzed. You drop on the ground, lifeless your spirit leaves
your body and you see Burg tied up in chains to the room. His spirit
was trapped here.
---------------------------------------''')
      time.sleep(13)
      print('''Congratulations you got ending 1/4 (The Bad Ending).
---------------------------------------''')
      time.sleep(3)
      win = 2
      break
    
    if win == 2:
      break
    
    if choice3 == "struggle out of his grip":
      print('''---------------------------------------
You attempt to get out of his grip. Nothing works so your last
option is feral but you do it anyways. You bite his arm and just as you thought,
he lets go of you. You run out of the basement as you leave a mighty roar behind
you.
---------------------------------------''')
      time.sleep(11)
      print('''Congratulations you go ending 2/4 (The OK Ending).
---------------------------------------''')
      time.sleep(3)
      win = 2
      break
    if choice3 == "ask betty to do something":
      print('''---------------------------------------
You plead Betty's soul to help you out. She starts singing a lullaby
to Burg. He soon calms down and lets go of you. You take this time to run out of the
house and escape Burg's imprisonment.
---------------------------------------''')
      time.sleep(8.5)
      print('''Congratulations you got ending 3/4 (The Good Ending).
---------------------------------------''')
      time.sleep(3)
      win = 1
      break

    if win == 1:
      break

    if choice3 =="let him be free":
      print("---------------------------------------")
      print("You:   Burg...")
      time.sleep(2)
      print((red)+"Burg:    Ah, yes! Your last words!"+(normal))
      time.sleep(2)
      print('''You:   Burg, on behalf of all the blue pyjama men. I want to release 
       you from your chained spirit, just tell me how!''')
      time.sleep(4)
      print((red)+"Burg:    yoU WaNT tO rEleASe mE?"+(normal))
      time.sleep(2)
      print("You:   Yes! Why is that so hard to believe?! Just tell me how!")
      time.sleep(3)
      print((red)+'''Burg:    Oh... You're serious... Well I need you to say is: Release!
Spirit of Burg!'''+(normal))
      time.sleep(3)
      print('''You:   Release! Spirit of Burg!''')
      time.sleep(2)
      print("*A massive flash lights up the basement and soon everything goes quiet.*")
      time.sleep(3)
      print ("*There\'s a "+(yellow)+ "note" +(normal)+ " on the ground.*")
      time.sleep(2)
      print('''You pick up the note and read it:''')
      time.sleep(3)
      print ("It says it's tomorrow's headlines.")
      time.sleep(2)
      print('''MAN DISCOVERS OMINOUS DEMONIC GHOSTS IN HAUNTED HOUSE
-----------------------------------------------------
Due to accidental recording on phone in his pocket.
Officer Marks clears out a haunted house and is promoted
to Captain rank. For finding signs of demonic rituals
and activity he was given a medal for his brave actions
in digging deep into the origins of the house and the
spirits it held. The old couple died today and is
thought to be because of the release of spirit in the 
basement. Yesterday Mark's son turned 5 years old and
because of his quick and efficient work he was able to
attend the party straight after his investigations.
-----------------------------------------------------
You:    Oh, would you look at that! My phone has been
        recording this entire t... Wait a second. How
        did the note know about tomorrow... Wait 
        where's the note? I swear I had it in my hand 
        just then...''')
      time.sleep(40)
      print("Congratulations you got ending 4/4 (The Best Ending).")
      time.sleep(3)
      win = 1
      break
  break



if win == 1:
      print((green)+'''Congratulations on beating the game. Again this was made by Genis Mulaj
in under 2 weeks. It was a blast making this and had so much fun doing so. I might
even make a part 2 in my spare time. Thank you for playing.'''+(normal))
if win == 2:
      print((red)+'''Well better luck next time. Did you find the secret guide in the house?
It guides you to understand how the boss fight goes.'''+(normal))