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?
AdventureGame/main.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 (22 sloc)
813 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 haolam import StoryA | |
print("----------4000CEM Week 4 Lab 2 Task----------") | |
print("----------------<InsertTitleHere>---------------") | |
print("---------------<InsertAuthorsHere>--------------") | |
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: ") | |
if x == "a": | |
StoryA() | |
# Contine adventure Here | |
elif x == "b": | |
print("The light comes on.") | |
print("You do not recognise the room but you have a really bad feeling...") | |
resp = input("You hear a scream outside, do you wish to respond or stay quiet?\n1. Respond\n2. Stay Quiet") | |
if resp == 1: | |
print("You do not get a reply") | |
elif resp == 2: | |
print("The scream gets louder") | |
else: | |
print("That was not an option. Game Over") |