SwashBuckler001's picture
IdiomBench (part 3)
37c77ed verified
Raw History Blame Contribute Delete
208 Bytes
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")