in this task that i have been set i have to recrate the 80s game colosal cave adventure but with learning python.
my code is this:
# collosal cave python adventure!
def op01():
input("what is your name brave adventurer?")
def op02():
if op01()== ("Parzival" and "parzival" and "Art3mis" and "artemis" and "Aech" and "aech"):
print ("welcome I am honoured to meet you. Even not in person it is still an honour.")
else:
print("welcome",op01(),"welcome to collosal cave python adventure")
def op03():
ready1 = input("are you ready to learn python? Yes/No")
def op04():
input("you are sat infront of a red brick house deep in the heart of a pine wood. what should you do? \n be simple\n try enter")
def op05():
if ready1() == ("Yes" and "yes" and "Y"):
op04()
def op06():
input("well were starting anyway \n you are sat infront of a red brick house deep in the heart of a pine wood. what should you do? \n be simple \n try 'enter' ")
def op07():
input("on a desk in the middle of the dark dingy room is an ancient apple II. waht do you do?")
def op08():
if op04()and op06() == ("go in" and "enter" and "open door"):
op07 = input("on a desk in the middle of the dark dingy room is an ancient PC. waht do you do?")
op01()
op02()
op03()
op04()
op05()
op06()
op07()
op08()
when this runs it asks for the name 3 times and the ignors the hello bla bla bla (op02)
(the aech parzival art3mis are from my favourite book ready player one)
my code is this:
# collosal cave python adventure!
def op01():
input("what is your name brave adventurer?")
def op02():
if op01()== ("Parzival" and "parzival" and "Art3mis" and "artemis" and "Aech" and "aech"):
print ("welcome I am honoured to meet you. Even not in person it is still an honour.")
else:
print("welcome",op01(),"welcome to collosal cave python adventure")
def op03():
ready1 = input("are you ready to learn python? Yes/No")
def op04():
input("you are sat infront of a red brick house deep in the heart of a pine wood. what should you do? \n be simple\n try enter")
def op05():
if ready1() == ("Yes" and "yes" and "Y"):
op04()
def op06():
input("well were starting anyway \n you are sat infront of a red brick house deep in the heart of a pine wood. what should you do? \n be simple \n try 'enter' ")
def op07():
input("on a desk in the middle of the dark dingy room is an ancient apple II. waht do you do?")
def op08():
if op04()and op06() == ("go in" and "enter" and "open door"):
op07 = input("on a desk in the middle of the dark dingy room is an ancient PC. waht do you do?")
op01()
op02()
op03()
op04()
op05()
op06()
op07()
op08()
when this runs it asks for the name 3 times and the ignors the hello bla bla bla (op02)
(the aech parzival art3mis are from my favourite book ready player one)