elif direction == "kitchen".lower():
print""
print("• As you enter the kitchen you get blasted with heat. "+kitchen)
print""
print("• "+lobby)
print""
direction=raw_input("• Where would you like to go next? ")
if direction == "kitchen".lower():
print""
print("• As you enter the kitchen again the stove explodes and you die in the fire.")
print""
print("• Game over.")
else:
print""
elif direction == "closet".lower():
print""
print("• As you step closer to the closet you can tell the door was smashed down by something.")
print""
有没有可能改变方向从“厨房”到“壁橱”或我需要两个变量?这是一个文本冒险游戏,试图进入新的房间
是的,你所做的是正确的。您可以随时为变量赋值
相关问题 更多 >
编程相关推荐