Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fildon/boids
An implementation of Boids using Typescript and HTML Canvas
https://github.com/fildon/boids
boids-simulation canvas typescript
Last synced: about 19 hours ago
JSON representation
An implementation of Boids using Typescript and HTML Canvas
- Host: GitHub
- URL: https://github.com/fildon/boids
- Owner: fildon
- Created: 2019-04-22T11:40:21.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-06T08:26:14.000Z (over 3 years ago)
- Last Synced: 2023-02-27T23:06:25.923Z (over 1 year ago)
- Topics: boids-simulation, canvas, typescript
- Language: TypeScript
- Size: 1.6 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Boids
[![.github/workflows/deploy.yml](https://github.com/fildon/boids/actions/workflows/deploy.yml/badge.svg)](https://github.com/fildon/boids/actions/workflows/deploy.yml)
[![.github/workflows/test.yml](https://github.com/fildon/boids/actions/workflows/test.yml/badge.svg)](https://github.com/fildon/boids/actions/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](https://fildon.github.io/boids/)## Local Development
```shell
yarn install
yarn build
```Then open dist/index.html in any browser
## Testing
Unit tests and test coverage are provided by Jest
```shell
yarn test
yarn test --coverage
```