(self, dog: Dog, entity: str)
| 43 | print(f"error, tried to store {entity}") |
| 44 | |
| 45 | def take(self, dog: Dog, entity: str): |
| 46 | count = self.resource_count[entity] |
| 47 | if count > 0: |
| 48 | self.resource_count[entity] -= 1 |
| 49 | address = self.address(entity, count) |
| 50 | dog.pick_known(entity, address) |
| 51 | dog.goto(self.root + Point(-1, -1)) |
| 52 | |
| 53 | def lowest_resource(self) -> str: |
| 54 | min_count = min(self.resource_count.values()) |
nothing calls this directly
no test coverage detected