From ac49dac6588f89edc8a6476600ee56cc34045fe0 Mon Sep 17 00:00:00 2001 From: Joshua Kenyon Date: Tue, 23 Oct 2018 12:00:29 +0000 Subject: [PATCH] updated to add functions --- TextAdventure.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/TextAdventure.py b/TextAdventure.py index 341641a..4009c72 100644 --- a/TextAdventure.py +++ b/TextAdventure.py @@ -1,21 +1,23 @@ +from StorylineA import StoryA +from StorylineB import StoryB print("----------4000CEM Week 4 Lab 2 Task----------") print("-------------------------------") print("-----------------------------") print("\n") + print("You awake in a dark room. Do you:") print("a) Scream for help.") print("b) Press the light switch") x = input("Enter a or b: ") +x = x.lower() if x == "a": print("Someone hears your screams...") print("You hear someone approaching") - # - import StorylineA + StoryA() elif x == "b": print("The light comes on.") print("You do not recognise the room but you have a really bad feeling...") - # Contine adventure Here - import StorylineB + StoryB() else: print("That was not an option. Game Over")