Skip to content

A toy simulation of a pandemic based on particles in a box.

License

Notifications You must be signed in to change notification settings

FortranFlo/pandemic_billiard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pandemic_billiard

A toy simulation of a pandemic based on particles in a box.

The HTML file, the CSS file and the Javascript file are commented a little bit. Have a look at them!

The simulation is pretty self-explaining. Every particle can be either uninfected (purple), infected (red), recovered (green) or dead (disapeared). Particle dynamics is controlled by the speed, size and number of particles. Recovery time is the time until the particle is no longer infectious and case fatality rate is the probabilty for an infected particle to die before recovery. The simulation should react to changing the window size as well.

About

A toy simulation of a pandemic based on particles in a box.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 64.8%
  • HTML 21.3%
  • CSS 13.9%