You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.3 KiB
Python

currentRoom = "aquarium"
start = True
graduation = False
study = 0
while True:
if (start == True):
print("Graduation: The Game")
start = False
if (graduation == True):
print("You Win!")
exit()
i = input()
# Choices in the aquarium
if currentRoom == "aquarium":
if i in ["look","see","view","explore"]:
print("Oh I'm in an aquarium cool")
elif i in ["exit","walk","run","door","leave"]:
print("You use the door to exit the aquarium")
currentRoom = "neutralzone"
elif i in ["learn","study","read", "pain", "frustration", "fun"]:
print("You have studied really hard. Noice")
study = study + 30
print("your ECTS is " + str(study) + " points")
# Choices in the neutral zone
elif currentRoom == "neutralzone":
if i in ["look","see","view","explore"]:
print("Oh the BA students have a presentation. annoying.")
elif i in ["exit","walk","run","door","leave"]:
print("You use the door to exit the neutralzone")
i = input("which door? (1 or 2)")
if i == "1":
print("You use the door to the aquarium")
currentRoom = "aquarium"
elif i == "2":
print("You use the door to the office")
currentRoom = "office"
# Choices in the office
elif currentRoom == "office":
if i in ["look","see","view","explore"]:
print("Oh I'm in an office, look theres Leslie. cool.")
elif i in ["exit","walk","run","door","leave"]:
print("You use the door to exit the office. Bye Leslie!")
currentRoom = "neutralzone"
elif i in ["talk","discuss","debate","ask","say"]:
print("Hiiiiii Leslie!")
print("Leslie: Hiiiiiii student, how can I help you?")
i = input()
if i in ["graduate","finish","degree"]:
if study >= 119:
print("no problem, here is your final degree. congratulations!")
graduation = True
else:
print("No way you only have " + str(study) + " ECTS points. go to the aquarium and study")