mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
e6f3995219
commit
318e087397
@ -178,11 +178,7 @@ class WaTor:
|
|||||||
>>> len(wt.get_entities()) == PREDATOR_INITIAL_COUNT + PREY_INITIAL_COUNT
|
>>> len(wt.get_entities()) == PREDATOR_INITIAL_COUNT + PREY_INITIAL_COUNT
|
||||||
True
|
True
|
||||||
"""
|
"""
|
||||||
return [entity
|
return [entity for column in self.planet for entity in column if entity]
|
||||||
for column in self.planet
|
|
||||||
for entity in column
|
|
||||||
if entity
|
|
||||||
]
|
|
||||||
|
|
||||||
def balance_predators_and_prey(self) -> None:
|
def balance_predators_and_prey(self) -> None:
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user