rzavalet / DiseaseSimulator

A disease simulator in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simulator for disease spread

This is a disease spread simulator based on Jacob Sorber's video.

Some differences:

  1. This version is implemented in C (instead of C++)
  2. This version uses raylib (instead of GTK).
  3. This version implements "No restriction" and "Stay at home" type of policies.

Usage

source setenv.sh
sh build.sh
./simulator

example

Dependencies

This simulator requires the raylib library. Please see the setenv.sh script.

Parameters

These are some of the parameters that you can play with:

  • POPULATION_SIZE
  • INFECTION_DURATION
  • INFECTION_PROBABILITY
  • NORMAL_FATALITY_RATE
  • SATURATED_FATALITY_RATE
  • INFECTION_PROXIMITY
  • SATURATION_THRESHOLD

About

A disease simulator in C


Languages

Language:C 93.5%Language:Shell 6.5%