Returns a list of all the entities within the planet. >>> wt = WaTor(WIDTH, HEIGHT) >>> len(wt.get_entities()) == PREDATOR_INITIAL_COUNT + PREY_INITIAL_COUNT True
(self)
| 171 | return |
| 172 | |
| 173 | def get_entities(self) -> list[Entity]: |
| 174 | """ |
| 175 | Returns a list of all the entities within the planet. |
| 176 | |
| 177 | >>> wt = WaTor(WIDTH, HEIGHT) |
| 178 | >>> len(wt.get_entities()) == PREDATOR_INITIAL_COUNT + PREY_INITIAL_COUNT |
| 179 | True |
| 180 | """ |
| 181 | return [entity for column in self.planet for entity in column if entity] |
| 182 | |
| 183 | def balance_predators_and_prey(self) -> None: |
| 184 | """ |
no outgoing calls
no test coverage detected