Governments around the world are asking how they could stop the spread of coronavirus. Is social distancing enough? Should we go back to life as normal? How many people will die?
These are questions that are hard to answer without seeing them first-hand, but the worst case scenario is not something that we would like to see...
For my first program in C, I created a simulator that aims to do just that. A simulator that could explore the best and worst case scenarios.
Video Summary: https://www.youtube.com/watch?v=yHCsnRRvYE0
Source Code: https://github.com/EverydayCodeNet/QUARANTINE/blob/master/src/main.c
The TI-84 download can also be found here.
Currently, I am working on an options menu that will allow the user to play with the population size, social distancing measures, death rate, and more.
Upcoming Features:
- Collision detection (used to simulate social distancing)
- Options menu (Death rate, population size, immunity, recovery time)
- Points of interest (grocery stores, movie theaters, airports)
- Quarantine areas
- Obstacles (Wall blocking off sections of the population)
- Asymptomatic - have dots show healthy status, but spread it to others
- Within a few loops, both dots start to show symptoms
- OPTIMIZE! OPTIMIZE! OPTIMIZE!
- THIS THING GETS TOO SLOW!
Let me know if you have any suggestions. This program is something that I will be coming back to for the foreseeable future.
Eye Candy:
Please, wash your hands.
These are questions that are hard to answer without seeing them first-hand, but the worst case scenario is not something that we would like to see...
For my first program in C, I created a simulator that aims to do just that. A simulator that could explore the best and worst case scenarios.
Video Summary: https://www.youtube.com/watch?v=yHCsnRRvYE0
Source Code: https://github.com/EverydayCodeNet/QUARANTINE/blob/master/src/main.c
The TI-84 download can also be found here.
Currently, I am working on an options menu that will allow the user to play with the population size, social distancing measures, death rate, and more.
Upcoming Features:
- Collision detection (used to simulate social distancing)
- Options menu (Death rate, population size, immunity, recovery time)
- Points of interest (grocery stores, movie theaters, airports)
- Quarantine areas
- Obstacles (Wall blocking off sections of the population)
- Asymptomatic - have dots show healthy status, but spread it to others
- Within a few loops, both dots start to show symptoms
- OPTIMIZE! OPTIMIZE! OPTIMIZE!
- THIS THING GETS TOO SLOW!
Let me know if you have any suggestions. This program is something that I will be coming back to for the foreseeable future.
Eye Candy:
Please, wash your hands.