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?
enter image description here

Asked By: asffghtr

||

Answers:

Perhaps something like:

choices = rooms[current_room]

if command in choices:
    current_room = choices[command]
else:
    print("You cannot go in that direction.")
Answered By: Mateen Ulhaq
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.