print ("*You look to your left and there is a wall, you then look to your right and find a short table with a map on it*") time.sleep(6) print("*You pick up the map*") map = """ |---------------------| | | | Start | | | | | |---------------------|""" print (map) while True: response = raw_input("Would you like to explore around the room or move to next the room? (Type explore ,or move-on): ")#line if response == "move-on": map = """ |---------------------|---------------------| | | | | Start | Room 2 | | | | | | | |---------------------|---------------------|""" print (map) break elif response == "explore": map = """ |-------------------------------------------| | | | [Chest | | D | | O | | O | | (table) R | | {Bed} | |-------------------------------------------|""" print (map) response = raw_input("What part would you like to explore? (Type chest ,or table): ") if response == "chest": print ("*You find a key*") print("add a variable here that when they type chest changes from 1 to 2 to be read as a key later on") break elif response == "table": print ("You find nothing") print ("*You walk over the the chest now and find a key*") break else: print "Your input is invalid...smarten up and restart the game*facepalm*" break time.sleep(6) print ("You put the key in the lock *click*(the door opens) you walk in")
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question