from sys import exit
import random
wumpus_room = random.randint(0, 3)
rooms = ["North", "East", "South", "West"]
def center_room():
print "You find yourself in a large cavern."
print "There are passages dug into the North, South, East, and West walls."
print "The Wumpus you have chased into this cavern could be down any of these passages."
print "You may peer into, shoot into or walk into the passages to the North,."
print "South, East, or West. For example peer north, or walk east, or shoot west."
print "\n"
choice = raw_input("> ")
if choice.lower() == "peer north":
if rooms[wumpus_room] == "North":
print("You see vague movements in the shadows")
else:
print("Nothing seems amiss")
elif choice.lower() == "shoot north":
# check for win or put the Wumpus somewhere else
if rooms[wumpus_room] == "North":
print "You killed the wumpus!"
exit(0)
else:
print "You missed! The wumpus could be anywhere now!!!"
wumpus_room = random.randint(0, 3)
else:
print "I don't understand...\n"
center_room()
center_room()