-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
40 lines (33 loc) · 1.13 KB
/
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
import random
color = '\033[95m'
#Elements
majorelements = ['Faith Plates','Light Bridges','Lasers','Funnels']
gels = ['Blue Gel','Orange Gel','No Gel']
cubes = ['1','2']
fields = ['Fizzler','Laser Field','Both']
fieldsnumber = ['1','2']
exitunlocked = ['Floor Button']
funnelbutton = 'Funnel Button (On the wall)'
laserrecirever = 'Laser Reciever'
#Choices
majorchoice = random.choice(majorelements)
gelchoice = random.choice(gels)
cubechoice = random.choice(cubes)
fieldschoice = random.choice(fields)
fieldsnumberchoice = random.choice(fieldsnumber)
exitunlockedchoice = random.choice(exitunlocked)
#Result
print(f"{color}Major: " + majorchoice)
print(f"{color}Gel: " + gelchoice)
print(f"{color}Cubes: " + cubechoice)
print(f"{color}Field: " + fieldschoice)
# Logic
if fieldschoice != 'Both':
print(f"{color}Fields Number: " + fieldsnumberchoice)
if majorchoice == 'Funnels':
print(f"{color}Exit is unlocked by: " + funnelbutton or exitunlockedchoice)
else:
if majorchoice == 'Lasers':
print(f"{color}Exit is unlocked by: " + laserrecirever)
else:
print(f"{color}Exit is unlocked by: " + exitunlockedchoice)