fork download
  1. def town_center():
  2. pass
  3. def castle():
  4. pass
  5.  
  6. items = []
  7. command = "east"
  8.  
  9. if command.lower() in ["north", "n"]:
  10. if "invitation" in items:
  11. castle()
  12. else:
  13. print "As you walk towards the gate, a guard approaches you and pushes you away. \"Sorry, pal,\" says the guard,\"You can't get in the castle without a written invitation from the king\""
  14. town_center()
  15. elif command.lower() in ["east", "e"]:
  16. pass
  17. #market()
  18. elif command.lower() in ["south", "s"]:
  19. pass
  20. #forest()
  21. elif command.lower() in ["west", "w"]:
  22. pass
  23. #village()
  24. elif command.lower() in ["inventory", "i"]:
  25. print items
  26. town_center()
  27. elif command.lower() in ["look", "l"]:
  28. print "\nYou are standing in the center of the rural town of Grifiinhorn, a quaint rural town in the province of Bedrin. To the north, you see a giant castle sitting on top of a hill. To the east is the marketplace, and to the west is the village. To the south is exit gates of the town which faces the Dark Forest.\n"
  29. town_center()
  30. else:
  31. town_center()
Success #stdin #stdout 0.01s 7892KB
stdin
Standard input is empty
stdout
Standard output is empty