https://github.com/nwtgck/boid-haskell
Boid simulation by Yampa in Haskell
https://github.com/nwtgck/boid-haskell
boids haskell
Last synced: over 1 year ago
JSON representation
Boid simulation by Yampa in Haskell
- Host: GitHub
- URL: https://github.com/nwtgck/boid-haskell
- Owner: nwtgck
- License: bsd-3-clause
- Created: 2017-09-09T00:59:10.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-14T20:45:24.000Z (almost 9 years ago)
- Last Synced: 2024-10-11T15:10:10.399Z (over 1 year ago)
- Topics: boids, haskell
- Language: Haskell
- Size: 101 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Boid simulation by Yampa in Haskell
## What's boid?
Boid is a program which simulates the flocking behaviour of birds.
Boid is based on simple 3 rules as follows.
* Separation
- steer to avoid crowding local flockmates
* Alignment
- steer towards the average heading of local flockmates
* Cohesion
- steer to move toward the average position (center of mass) of local flockmates
(from: https://www.wikiwand.com/en/Boids)
## Main features
* Yampa - A functional reactive programming library
* GLUT - The OpenGL Utility Toolkit
## How to run
```sh
$ stack build --exec boid-exe
```
## Demo

This boid is a swarm of flies rather than a flocking of birds :D
(This program is based on http://otatin.com/static/www/simple-boids/ (JavaScript))