I have just started making a text based adventure game. I have used an input function, for the players movement, butwhen ever i press enter after entering an option and pressing enter the window just closes???

print "This is a text based adventure game called --Iron Fud--"print "The goal of the game is to find and defeat the King!"print "Play through and Enjoy the Game! :)"print ""print "You are In a small dark room. There is a lamp on the ground"print "and a door in front of you."print ""input("Option (n, s, e, w): ")

You want raw_input() rather than input(). input() tries to interpret the user's input as a Python expression (usually a number, but it could be any arbitrary Python code including stuff that wipes your hard drive). The generally recommended way to get a number from raw_input() is to call int() or float() on the string that raw_input() returns.

Also, the variable "input" (or "raw_input") doesn't change after you call it as a function, you need to take the return value and do something with it. For example,