SwashBuckler001's picture
IdiomBench (part 9)
acb7111 verified
Raw History Blame Contribute Delete
148 Bytes
match command.split():
case ["go", ("north" | "south" | "east" | "west") as direction]:
current_room = current_room.neighbor(direction)