Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.25 KB

README.md

File metadata and controls

25 lines (16 loc) · 1.25 KB

covid-simulator

Run simulator with python3 "disease sim1.py"
Run game with python3 "covid game.py"

Dependency downloads: pip3 install matplotlib && pip3 install pygame

Computer Programming, Dawson College, May 2020
Comprehensive Examination

For my final term project and comprehensive examination I made a covid simulator. Balls represent people and move in random directions at different speeds. If a susceptible ball touches an infected ball, it too becomes infected. After a certain amount of time the infected recovers and can no longer spread the virus (assumed immunity). There is also a game version where you control a susceptible ball in the simulation. Move with the mouse and try to avoid getting infected for as long as possible.

Works cited

Craven, Paul V. (2017) Program Arcade Games With Python And Pygame. Retrieved from http://programarcadegames.com/index.php?chapter=example_code
Winther, Greg. Youtube. https://www.youtube.com/channel/UCnjX4ZR_aom8P3UOjU3Qkbg
Pygame Documentation. Retrieved from https://www.pygame.org/docs/index.html
Stevens, H. (2020, March 14). These simulations show how to flatten the coronavirus growth curve. Retrieved from https://www.washingtonpost.com/graphics/2020/world/corona-simulator/