(self, char: str, target: Optional[Point] = None)
| 54 | return resp |
| 55 | |
| 56 | def pick(self, char: str, target: Optional[Point] = None): |
| 57 | self.send(f"PICK {char}") |
| 58 | if target is None: |
| 59 | target = self.location.forward(self.facing) |
| 60 | # (pos, facing, _, _) = self.stat() |
| 61 | # target = pos.forward(facing) |
| 62 | try: |
| 63 | self.char_locations[char].remove(target) |
| 64 | except KeyError: |
| 65 | print(f"{char} {target} was not in known locations") |
| 66 | |
| 67 | def stat(self) -> Tuple[Point, str, int, str]: |
| 68 | reply = self.send("STAT") |
no test coverage detected