fixing-Errors #24

Merged
s473555 merged 10 commits from fixing-Errors into main 2023-05-29 09:13:00 +02:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 44bdfa8ae1 - Show all commits

View File

@ -1,4 +1,5 @@
[APP]
cat = False
movement = robot
NumberOfBananas = 20
#accept: human, robot

View File

@ -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))