simulation package¶
Submodules¶
simulation.engine module¶
- class simulation.engine.SimulationEngine(grid_size=20, steps=30, foodweb_path='configs/foodweb_config.json')[source]¶
Bases:
objectControls and runs the ecosystem simulation.
Handles grid setup, population initialization, step-wise organism behavior, reproduction, and visualization including population tracking and heatmaps.
- __init__(grid_size=20, steps=30, foodweb_path='configs/foodweb_config.json')[source]¶
Initialize simulation parameters and state.
Parameters: grid_size (int): Size of the simulation grid. steps (int): Total number of simulation steps. foodweb_path (str): Path to food web configuration JSON.