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/StorylineA.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18 lines (18 sloc)
600 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
### Storyline A | |
def StoryA(): | |
print("The footsteps suddenly stop...") | |
print("Do you either:") | |
print("a) scream again") | |
print("b) keep quiet") | |
x = input("Enter a or b: ") | |
x = x.lower() | |
if x == "a": | |
print("The door swings open, the dark figure carrying a gun...") | |
print("It seems your story has ended here...") | |
print("Game over") | |
elif x == "b": | |
print("You hear the footsteps growing quieter.") | |
print("'Maybe they didnt hear me' you think to yourself; maybe this was for the best") | |
else: | |
print("It seems you entered an invalid command, try again") | |
StoryA() |