Skip to content

nherzing/ligbugs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ligbugs

A Clojurescript app to simulate ad-hoc firefly synchronization. Based on Firefly Synchronization in Ad Hoc Networks.

Check out a demo here

Usage

lein cljsbuild once and then pop open index-dev.html in a browser of your choosing.

index-dev.html will display a grid of flashing fireflies. Each firefly can only see the fireflies that are adjacent to it (above, below, left of, right of). Fireflies change when they flash based on what they see their neighbors doing. Eventually, everbody syncs up and all flash at once.

The code could easily be reused to make all sorts of configurations of fireflies. Check out the bug function.

License

Copyright © 2014 FIXME

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

A synchronizing lightning bug simulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published