Skip to content

TheRohitRahul/Disease_Spread_Simulator

Repository files navigation

Description

A Window will show which will show 2d map of where a certain number of people will spawn. They will start to move and will come in contact with each other. When two people come in contact then if a person is infected then there is a chance that the other person will get infected as well. This code will simulate how the disease will spread when people are moving within a fixed area.

The current representation of the situation while the simulation is running will be shown in a window. A dot will represent a person. The status of the person will be shown as a color. Green dot represents an infected person White represents uninfected person Blue represents immune person Red represents dead person

Configure the variables

All the configurable variables are present in config.py

Running the code

To run the code you need to run the following command:

python main.py

About

Code simulating the spread of a disease. (Agent based modelling)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages