(self)
| 78 | |
| 79 | |
| 80 | def scan(self) -> Tuple[str, str, str]: |
| 81 | reply = self.send("SCAN") |
| 82 | (point, facing, _, _) = self.stat() |
| 83 | chars = (reply[5], reply[6], reply[7]) |
| 84 | for i, char in enumerate(chars): |
| 85 | char_location = point.forward(facing, i + 1) |
| 86 | if not self.depot_area.contains(char_location): |
| 87 | self.char_locations[char].add(char_location) |
| 88 | |
| 89 | return chars |
| 90 | |
| 91 | def turn_right(self): |
| 92 | self.send("TURN R") |
no test coverage detected