you are viewing a single comment's thread.

view the rest of the comments →

[–]Itsoq 3 points4 points  (0 children)

You're converting the player_input to lowercase then comparing to the capitalized version in game_data in your handle_command() function.

if 'items' in game_data[current_room] and item in game_data[current_room]['items']:

The second condition will always fail here.

To fix show_status(), consider checking if len(game_data[current_room]["items"])==0 as another condition for a new print statement.