Moving Between Rooms in PyCharm
Question:
Trying to get Python to move between rooms in a text based game. No matter what direction, it will not move out of the bathroom. Any suggestions?
Answers:
Perhaps something like:
choices = rooms[current_room]
if command in choices:
current_room = choices[command]
else:
print("You cannot go in that direction.")
Trying to get Python to move between rooms in a text based game. No matter what direction, it will not move out of the bathroom. Any suggestions?
Perhaps something like:
choices = rooms[current_room]
if command in choices:
current_room = choices[command]
else:
print("You cannot go in that direction.")