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?
TextAdventure/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.
22 lines (20 sloc)
670 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 StoryAFile import storyA | |
from StoryBFile import storyB | |
from time import sleep | |
print("----------4000CEM Week 4 Lab 2 Task----------") | |
print("---------------- Text Adventure ---------------") | |
print("--------------- By Ayo, Ben --------------") | |
print("\n") | |
print("You awake at 5pm. Your lectures started at 9am. Do you:") | |
print("a) Scream for help") | |
print("b) Get out of bed") | |
x = input("Enter a or b: ") | |
if x == "a": | |
print("Someone hears your screams...") | |
storyA() | |
elif x == "b": | |
print("It's dark.") | |
print("Your head is spinning, and your memory of the night before is patchy...") | |
storyB() | |
else: | |
print("That was not an option. Game Over") |