SwashBuckler001's picture
IdiomBench
16ef63d 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)