Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
TextGame/TextAdventure.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
23 lines (21 sloc)
706 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | |
StoryA() | |
elif x == "b": | |
print("The light comes on.") | |
print("You do not recognise the room but you have a really bad feeling...") | |
StoryB() | |
else: | |
print("That was not an option. Game Over") |