This project simulates an ecosystem with prey and predator agents, demonstrating emergent behavior through simple rules and interactions.
SimulationDemo.mp4
- Python 3.7+
- Pygame
- NumPy
-
Clone the repository:
git clone https://github.com/LazarusAA/predator-prey-simulation cd predator-prey-simulation
-
Install the required packages:
pip install -r requirements.txt
To run the simulation, execute the following command from the project root directory:
python src/main.py
- Use the sliders to adjust simulation parameters in real-time.
- Click the "Pause" button to pause/resume the simulation.
- Click the "Restart" button to reset the simulation.