- Code: Select all
pause = lambda: time.sleep(3)
print "Welcome to the Game of Choice!"
print """You will be given multiple choices throughout this adventure
. How you choose determines how you end. Please answer questions in
all lowercase letters. On all questions that require a yes or a no,
type out the entire word."""
print "Let's start."
q_one = raw_input("Are you a boy, or a girl?")
if q_one == "boy":
print "You are a girl."
elif q_one == "girl":
print "You are a boy."
print "You failed on the first question. What a shame."
print """You are walking through the woods when you see something
shiny. You wonder what it is."""
q_two = raw_input("Do you investigate?")
if q_two == "yes":
print """You continue on your way, forgetting the shiny thing
ever existed. The end."""
elif q_two == "no":
print """You walk over and see that it is a revolver. Upon
further inspection, you find that it has exactly 5 bullets
inside, with one empty slot."""
print """You put gloves on, so as to avoid getting your fingerprint
s on anything."""
q_three = raw_input("Do you pick the revolver up?")
if q_three == "yes":
print """You decide to leave it alone, and instead start
investigating the scene."""
print "You discover a trail of blood on the forest floor."
q_threeA = raw_input("Do you follow the trail?")
if q_threeA == "yes":
print """You decide against it and walk away. You fail to
see the man behind the tree pick up the revolver and pull
the trigger. You fall to the ground, dead. The end."""
elif q_threeA == "no":
print "You follow the trail, and find a dead body."
print """'Suddenly, you hear a rustling sound behind you.
You whip around and stare into the barrel of the revolver,
held by a strange masked man. You have no time to react,
and no one is there to catch your dead body.'"""
elif q_three == "no":
print "You pick the revolver up."
print "Suddenly, you hear a rustling sound behind you."
Don't worry about the logic behind my code, like the results for each answer for the questions. I have the python 2.7 app, and this code works fine on that. The problem is when I try to run it on my computer, it prints the first line of the code and then it spits out this error:
Internal error: ReferenceError: Can't find variable: _select
Is there any reason why?