File size: 148 Bytes
5eb110b
 
 
1
2
3
4
match command.split():
    case ["go", ("north" | "south" | "east" | "west") as direction]:
        current_room = current_room.neighbor(direction)