File size: 208 Bytes
5eb110b
 
 
 
 
1
2
3
4
5
6
match command.split():
    case ["go", direction] if direction in current_room.exits:
        current_room = current_room.neighbor(direction)
    case ["go", _]:
        print("Sorry, you can't go that way")