Skip to content

Telthor/bad-boids

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bad(ish) Boids

Introduction and Installation

A program that simulates the flocking behaviour of birds. Can be installed by downloading the file and running:

'(sudo) python setup.py install'

Can be run from the command line with:

'boids'

Configuration

It can be configured with your own parameters by using a .yaml configuration file. The template can be seen in here, but files must include:

  • dimension_limits: [-450, 300, 50, 600]
  • velocity_limits: [0, -20.0, 10, 20.0]
  • Limits: [-500, 1500]
  • boid_count: 50
  • move_to_middle_strength: 0.01
  • alert_distance: 100
  • formation_flying_distance: 10000
  • formation_flying_strength: 0.125
  • frames: 50
  • interval: 5000

Default values are shown above for illustration

Configuration files are called using the -c command after 'boids' and adding the name of your configuration file.

About

A deliberately badly programmed implementation of Boids for teaching

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%