diff --git a/core/simulation_engine.py b/core/simulation_engine.py index 0ac08ef..1f5abb2 100644 --- a/core/simulation_engine.py +++ b/core/simulation_engine.py @@ -33,9 +33,10 @@ class SimulationEngine: self.running = True + @staticmethod def _setup_world(self): world = World(CELL_SIZE, (CELL_SIZE * GRID_WIDTH, CELL_SIZE * GRID_HEIGHT)) - random.seed(0) + random.seed(RANDOM_SEED) if FOOD_SPAWNING: world.add_object(FoodObject(Position(x=random.randint(-100, 100), y=random.randint(-100, 100))))