Answer:
Something like this?
The only requirement this doesn't exactly hit is moving the user to the "exit" room. It doesn't make use of that entry in the dictionary. However, this is the best way of doing it to avoid multiple "if" statements.
Black-hat hacker is the answer. Hope this helps.
True
Sorry if it’s wrong need to answer some before asking a question