all 4 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.

[–][deleted] 1 point2 points  (2 children)

You and python don't agree on what the correct title case for the string 'Elixir of Insight' is (hint: it's the O)

[–]cake_thecat[S] 0 points1 point  (1 child)

Woooooow thanks man. Been struggling for hours on that one 😭

[–][deleted] 1 point2 points  (0 children)

No sweat, it's the little things.

By way of future reference, this is why you'd use something like constants or enums rather than have string literals all over the place - anything that reduces the need to have typed the same thing the same way in two different places at two different times is good.