Skip to content

Commit

Permalink
updated to add functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kenyonJ committed Oct 23, 2018
1 parent f51cafc commit ac49dac
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions TextAdventure.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
from StorylineA import StoryA
from StorylineB import StoryB
print("----------4000CEM Week 4 Lab 2 Task----------")
print("----------------<Textmania>---------------")
print("---------------<Joshua, Philip, Mango. Tomas>--------------")
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")

0 comments on commit ac49dac

Please sign in to comment.