(self, direction)
| 12 | def describe(self): |
| 13 | print("the room is dark and small, it contains", self.objects); |
| 14 | def neighbor(self, direction): |
| 15 | match direction: |
| 16 | case "left": |
| 17 | print("changed to room", direction) |
| 18 | return Room(set(["knife", "bread", "butter"])) |
| 19 | case "north": |
| 20 | print("changed to room", direction) |
| 21 | return Room(set(["polar-bear", "ice", "snow"])) |
| 22 | case "right" |"front" |"back": |
| 23 | print("No Room", direction) |
| 24 | case _: |
| 25 | print("unknown direction") |
| 26 | return self |
| 27 | |
| 28 | class Character: |
| 29 | def __init__(self): |
no test coverage detected