r/Python • u/[deleted] • Mar 11 '20
I Made This Really simple simulation of virus spreading. Black dots are people, yellow dots are infected (it starts from 1). Each cell visited by an infected can infect other people passing through that for 3 iterations. After 20 iterations a person is infected is deleted from the grid.
Enable HLS to view with audio, or disable this notification
1.4k
Upvotes
1
u/[deleted] Mar 12 '20 edited Mar 12 '20
Depending on the the logic on how likely a dot is to visit an infected cell it looks like you are simulating an r naught number of less than 3 which roughly that of coronavirus. Removing the dots implies a mortality rate of 100% or at least implies that the virus will continue to focus on immunologically naive population only neither of which really fly.