• This is the inner workings and program purpose for the adventure game. The purpose of this program is to provide whoever plays this micro adventure game a choice of paths, and with different outputs for every input you choose. It uses mostly print, question with response, and if rsp to function, relying on the player to choose one of the provided options printed
import getpass, sys

def question_with_response(prompt):
    print( prompt)
    msg = input()
    return msg


print('Hello, User')
print("Welcome to Curse of The Python, where your inputs will forge the output on your quest to escape")
rsp = question_with_response("Are you ready to embark on your adventure? Type Y or N")



if rsp == "Y":
    print("Very Well...") 
    rsp = question_with_response("Press Enter to Continue")


if rsp == "N": 
    print("Perhaps another time then...")

rsp = question_with_response("You wake up on the stone floor in a temple, as you drearily make your way to your feet, you see a python insignia staring at you, there are 3 doors, one made of wood, one made of rusty metal, and one with a skull painted on it. Which do you choose?")


if rsp == "Wood": 
    print("You go through the room behind the wooden door, the creaking only being absorbed by the emptiness within it...except for some writing on the wall. Read it?") 
    rsp = question_with_response ("Read? or Don't?")

if rsp == "Don't":
    print("Really? what else will you do?")
    print("You got the Dead-end ending")

if rsp == "Read":
    print("The text reads: 'I sing but never talk, Always run but don't walk, I have hands, but no arms, and a face, but no head'")
    rsp = question_with_response ("What could the answer be?")

if rsp == "Clock":
    print("As you mutter the answer to yourself, you hear a little crumble, and as you say it again, the walls move slightly, showing the outside world. Then as you yell it one more time, the walls open completely, and you run outside")
    print("You got the Intellect ending")

if rsp == "Metal": 
    print("As you push your weight against the door, it slowly creaks open as you stumble into the dimly lit room it holds. As you make your way in, you see a snake stuck in a cage with the key outside. The snake looks like it wants you to free it")
    rsp = question_with_response ("Free? or Leave?")

if rsp == "Leave":
    print("Sensing your abandonment, the snake then spews venom at you, causing you to")

if rsp == "Free": 
    print("The snake sees your moral kindness as you free it from the cage, and as it slithers away through a crevice, the room begins to shake as the stone walls open revealing the outside world.")
    print("You got the Compassion Ending")

if rsp == "Skull": 
    print("The Door opens with relative ease, but upon setting foot in the room, spikes begin to come from the ceiling! As you observe what will be you impending doom, you notice a bone and a stick in the corner. Perhaps using one of these can save your life!")
    rsp = question_with_response("What do you reach for, Stick? or Bone?")

if rsp == "Stick":
    print("You put the stick in between the floor and the ceiling, but the stick breaks under the pressure, and with that, you fell victim to the python's curse. Game over")

if rsp == "Bone": 
    print("Thankfully, the bone withstood the pressure of the ceiling, and after attempting to crush you, it retracts, revealing a ladder up to the outside")
    print("You got the Near-Death Ending")
InfoDb = []

InfoDb.append({

"Hello"




})

print(InfoDb)
[{'Hello'}]