Skip to content
/ boids Public

An implementation of Boids using Typescript and HTML Canvas

Notifications You must be signed in to change notification settings

fildon/boids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boids

.github/workflows/deploy.yml .github/workflows/test.yml

Boids is an implementation of an artificial life program originally developed in the 1980s.

The concept is simple, flocking can be simulated with just three fundamental rules:

  • Separation (avoid crashing into other birds)
  • Alignment (travel in the same direction as nearby birds)
  • Cohesion (get close to nearby birds)

You can view the currently deployed simulation here: Boids

Local Development

yarn install
yarn build

Then open dist/index.html in any browser

Testing

Unit tests and test coverage are provided by Jest

yarn test
yarn test --coverage

About

An implementation of Boids using Typescript and HTML Canvas

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages