# A dictionary for the simplified dragon text game
# The dictionary links a room to other rooms.
rooms = {
'Great Hall': {'South': 'Bedroom'},
'Bedroom': {'North': 'Great Hall', 'East': 'Cellar'},
'Cellar': {'West': 'Bedroom'}
}
directions = ['north', 'south', 'east', 'west']
current_room = rooms['Great Hall']
# game loop
while True:
if current_room == 'Great Hall':
print('Congratulations! You have reached the Great Hall and defeated the Dragon!')
break
print('You are in {}.'.format(current_room))
command = input('What do you do?')
if command in directions:
if command in current_room:
current_room = rooms[current_room[command]]
else:
# bad movement
print('You cannot go that way.')
# Quit game
elif command == 'quit':
print('Thanks for playing!')
break
# bad command
else:
print('invalid input')
When I enter in input of directions is keeps telling me that its invalid input ? I also tried entering in the room that i would liek to go in but it keeps giving me invalid input