def start(): print(""" You awake to find yourself in a dark corridor, it looks like a school but you can't be sure as there are no lights. You walk slowly up the corridor, holding onto the walls. There is a swinging light flickering on and off ahead. There is a door to your left and a door to your right... which way do you want to go?""") option=input("Enter A for ahead, L to go left, R to go right >>> ") # A should take you to reception # L should take you to year7cor # R should take you to techblock # Anything else should display an error message and take you to start if option == "A": reception() elif option == "L": year7cor() elif option == "R": techblock() else: print("That's not an option. Try again") start() def reception(): print(""" You are in the reception area. The internal doors are opening and closing on their own and nobody is in sight. The whole place is trashed. You can hear some whaling in the distance and it sounds spooky. The main entrance is locked. There are 10 foot fences surrounding the entire school. You try the main entrance door but you can't get it open. There is a door to your left.""") option=input("Enter B to go back to the corridor, or L to go through the door >>> ") # B should take you to start # L should take you to slt # Anything else should display an error message and take you to reception if option == "B": start() elif option == "L": slt() else: print("That's not an option. Try again") reception() def year7cor(): print(""" You must have made a wrong turn as there are hundreds of year 7 zombies running around the corridor and classrooms. You need to get out of here quickly! There is a hole in the wall to your right.""") option=input("Enter B to go back, or W to go through the hole in the wall >>> ") # B should take you to reception # W should take you to escape # Anything else should display an error message and take you to year7cor if option == "B": reception() elif option == "W": escape() else: print("That's not an option. Try again") year7cor() def techblock(): print(""" You have arrived to the Tech block and it seems abandoned. There are no windows or doors left, the whole place has been devastated. There is a message sprayed onto the floor, it reads: 'password is 6419'. What does this mean you wonder? You hear a loud crash and see some zombie teachers coming your way.""") choice=input("You need to think fast - to run enter R, or fight them enter F >>> ") # R should take you to escape # F should take you to fight # Anything else should display an error message and take you to techblock if choice == "R": escape() elif choice == "F": fight() else: print("That's not an option. Try again") def slt(): print(""" There is nothing here. Just darkness and scary noises, you should go back.""") option=input("Hit B to go back >>> ") # B should take you to reception # Anything else should display an error message and take you to slt if option == "B": reception() else: print("That's not an option. Try again") slt() def fight(): print(""" You fought your best but you didn't stand a chance! Game over!""") option=input("Retry (R)? Or Quit (Q)?") # R should take you to start # Q should quit the program using ' quit() ' # Anything else should display an error message and take you to fight if option == "R": start() elif option == "Q": exit() else: print("That's not an option. Try again") fight() # DO NOT EDIT OR ADD ANYTHING BELOW THIS LINE!**************************************** def escape(): print(""" You arrive to the 10 foot fencing outside. The steel fences are secure, there is no way out. You notice a box on one of the fence panels. A metal box, glistening. You approach it, it needs a security passcode! You look behind you and you can now see the year 7 zombies heading your way and they look hungry!""") option=input("Do you have the passcode? If so, enter Y. If not, you had better run! enter N >>> ") if option == "Y": passcode=input("Enter the code: >> ") if passcode == "6419": win() else: print("wrong code! Try again") escape() elif option == "N": print("Run, run, run!") reception() else: print("Sorry I didn't understand that") escape() def win(): print(""" Congratulations! You escaped the *** REDACTED DURING MIGRATION ***! GAME OVER!""") quit() print("Welcome to *** REDACTED DURING MIGRATION ***!") start() # This instructs the program to go to the start() function - do not edit!