Number of generated bananas
This commit is contained in:
parent
c6538f420f
commit
44bdfa8ae1
@ -1,4 +1,5 @@
|
||||
[APP]
|
||||
cat = False
|
||||
movement = robot
|
||||
NumberOfBananas = 20
|
||||
#accept: human, robot
|
2
main.py
2
main.py
@ -145,7 +145,7 @@ class Main:
|
||||
|
||||
def generate_world(tiles_x: int, tiles_y: int) -> World:
|
||||
world = World(tiles_x, tiles_y)
|
||||
for _ in range(35):
|
||||
for _ in range(config.getint("APP", "NumberOfBananas")):
|
||||
temp_x = randint(0, tiles_x - 1)
|
||||
temp_y = randint(0, tiles_y - 1)
|
||||
world.add_entity(Garbage(temp_x, temp_y))
|
||||
|
Loading…
Reference in New Issue
Block a user