Skip to content
Snippets Groups Projects
Commit 1ae0a15f authored by Tessaris Sergio's avatar Tessaris Sergio
Browse files

fix: GridWorld random method bug

parent 433e5068
No related branches found
No related tags found
No related merge requests found
......@@ -640,12 +640,8 @@ class Eater(Agent):
class EaterWorld(GridWorld):
"""
docstring
"""
@classmethod
def random(cls, map_desc: str = None, food_amount: float = .1, **kwargs) -> 'EaterWorld':
def random(cls, **kwargs) -> 'EaterWorld':
"""Create a new world from the map description and randomly place food until the given percentage of the free space is filled. If the food amount is greater or equal than 1 then it's interpreted as the number of food objects to include.
Args:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment