diff --git a/config.ini b/config.ini index 87d6bac..3a3ee83 100644 --- a/config.ini +++ b/config.ini @@ -1,4 +1,5 @@ [APP] cat = False movement = robot +NumberOfBananas = 20 #accept: human, robot \ No newline at end of file diff --git a/main.py b/main.py index 9a27f03..8f30414 100644 --- a/main.py +++ b/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))