Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commands = ['walk','look','flip','switch','fart','suicide','taunt', 'light']
- p = "> " #input prompt
- wrong= "Do what now?"
- def start():
- level =1
- next = ""
- print " You are in a room that is pretty damn dark. If only you could see something"
- while not next == "-quit":
- input= raw_input(p)
- input2 = [input.lower() for input in input.split()
- for i in range(len(commands)):
- if input2 == commands[i]:
- run_command(commands[i])
- def run_command(command):
- if command.lower() == "fart":
- print "you farted too hard and pooped. Nice!"
- start()
Add Comment
Please, Sign In to add comment