/erl_boids

Autonomous boid process projected on an HTML5 canvas via a Websocket

Primary LanguageErlangOtherNOASSERTION

Erlang Boids

Multiple concurrent Erlang processes send shape objects to a web page
through a Cowboy Websocket. The processes use a heat map to track where they
and other processes are currently drawing themselves. The heat map dissapates
over time to encourage the processes not to try and go backwards. Unfortunately
this allows them to get trapped in corners by other processes. Needs tuning.

YouTube Project Playlist:
https://www.youtube.com/watch?v=kP7Eq5dzZYA&list=PLYOxNewSFYceijv9lkypK5viNCzIk6PZY

Doodled explanation of how erl_boids works:
https://www.youtube.com/watch?v=koZHwhVQSrQ&feature=youtu.be

Jan 25, 2015 YouTube Update:
https://www.youtube.com/watch?v=4zdtaaAYtgg

Features:
- gen_server process per Websocket handler using simple_one_for_one
  supervisor child spec
- concurrent drawing processes
- Server graphic object buffering
- Process influence "heat map"

This project was originally part of:
https://github.com/cwmaguire/erl_ws