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 5 additions and 3 deletions
Showing only changes of commit d470601fe1 - Show all commits

View File

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

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(config.getint("APP", "NumberOfBananas")):
for _ in range(config.getint("CONSTANT", "NumberOfBananas")):
temp_x = randint(0, tiles_x - 1)
temp_y = randint(0, tiles_y - 1)
world.add_entity(Garbage(temp_x, temp_y))