Skip to content

Grydr/flocking-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sim Thumbnail

Boids(Flocking) Simulation

A Boid/Flocking simulation for Code In Place 2025 Final Project written in Python

Dependencies

  • pygame-ce v2.5.5
  • pygame-gui v0.6.14

How to run

Clone the repository

git clone git@github.com:Grydr/flocking-simulation.git
cd flocking-simulation

If you have all the dependencies installed

python main.py

or if you have uv installed

uv sync
source .venv/bin/activate
python main.py

or

uv run main.py

TODO

  • change boids shape
  • implement trailing line
  • color 1 random boids as the main character(?)

Credit to

@The Coding Train videos on flocking algorithm

@Ben Eater for inspiring this little project

@Craig Reynolds as the developer of this algorithm

About

A Boid/Flocking simulation for Code In Place 2025 Final Project written in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages