Disease Spread Simulator

Computer Science: Concepts & Explorations
David Reed


Grid size: 50        
Your browser does not support the HTML5 canvas tag.

white:uninfencted
black:infected/contagious
gray: infected/recovered

This simulation models the spread of a disease, starting with one infected patient on Day 0. The probability of a patient being infected by contact and the number of days an infected patient is contagious can be adjusted below.

Infection probability: 20%
Contagious period: 4 days

Running the simulation: You can click to see one day at a time, or start the continuous infection process:



with second delay



Day: 0 Percentage infected: 0%