Skip to content
Permalink
Browse files
Create TextAdventure.py
  • Loading branch information
ab3735 committed Oct 7, 2018
1 parent 045f2a0 commit 8e07ccc0ec2c86435b4aa25c86f75f404564c089
Showing 1 changed file with 21 additions and 0 deletions.
@@ -0,0 +1,21 @@
# Based on https://github.com/Matthew-England/121COMWeek2Ex7

print("---------- 121COM Week 2 Lab Exercise 7 ----------")
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")
choice = input("Enter a or b: ")
if choice == "a":
print("Someone hears your screams...")
# Contine adventure Here
elif choice == "b":
print("The light comes on.")
print("You do not recognise the room but you have a really bad feeling...")
# Contine adventure Here
else:
print("That was not an option. Game Over")

0 comments on commit 8e07ccc

Please sign in to comment.