Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 702 Bytes

File metadata and controls

31 lines (20 loc) · 702 Bytes

Boid Simulation

A Python implementation of Craig Reynolds' Boids algorithm, simulating flocking behavior of birds.

Description

This project simulates the emergent flocking behavior of birds (boids) using three simple rules:

  • Separation: Steer to avoid crowding local flockmates
  • Alignment: Steer towards the average heading of local flockmates
  • Cohesion: Steer to move toward the average position of local flockmates

Installation

pip install -r requirements.txt

Usage

python main.py

Requirements

  • Python 3.x
  • Additional dependencies listed in requirements.txt

License

This project is open source and available under the MIT License.