Skip to content

A dynamic predator-prey simulation with interactive controls, modeling the complex emergent interactions between predators and prey in an ecosystem.

License

Notifications You must be signed in to change notification settings

LazarusAA/predator-prey-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Emergent Ecosystem Simulation

This project simulates an ecosystem with prey and predator agents, demonstrating emergent behavior through simple rules and interactions.

SimulationDemo.mp4

Requirements

  • Python 3.7+
  • Pygame
  • NumPy

Installation

  1. Clone the repository:

    git clone https://github.com/LazarusAA/predator-prey-simulation
    cd predator-prey-simulation
    
  2. Install the required packages:

    pip install -r requirements.txt
    

Running the Simulation

To run the simulation, execute the following command from the project root directory:

python src/main.py

Controls

  • 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.

About

A dynamic predator-prey simulation with interactive controls, modeling the complex emergent interactions between predators and prey in an ecosystem.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages