Skip to content

A deliberately badly programmed implementation of Boids for teaching

License

Notifications You must be signed in to change notification settings

ddervs/bad-boids

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boids

Implementation of Boids, used as an exercise on refactoring for the UCL RSD Software Engineering course. Forked from bad-boids.

Usage

usage: boids [-h] [--config CONFIG] [--example_config]

Runs the boids simulation.

optional arguments:
  -h, --help        show this help message and exit
  --config CONFIG   YAML file with simulation options. See README.md or use
                    --example-config option for specification.
  --example_config  Saves default config file to current working directory.

Any variables not defined will be replaced by the default values below.

Sample Config File

move_to_middle_strength: 0.01
alert_distance: 100
formation_flying_distance: 10000
formation_flying_strength: 0.125
number_of_boids: 50
# Simulation initial conditions
x_initial: [-450, 50.0]
y_initial: [300.0, 600.0]
vx_initial: [0, 10.0]
vy_initial: [0, 10.0]
# Plot limits
x_plot_limits: [-500, 1500]
y_plot_limits: [-500, 1500]
# Animation parameters
frames: 50
interval: 50

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 70.1%
  • TeX 29.9%