To implement movement, you can use the @when decorator with the direction keyword argument. This allows a single function to handle multiple directions by receiving the direction name as a parameter. Use current_room.exit(direction) to find the destination.
@when('north', direction='north')
@when('south', direction='south')
@when('east', direction='east')
@when('west', direction='west')
@when('n', direction='north')
@when('s', direction='south')
@when('e', direction='east')
@when('w', direction='west')
def go(direction):
global current_room
room = current_room.exit(direction)
if room:
current_room = room
print(f'You go {direction}.')
# Assuming a look() function exists to show room description
print(current_room)