Over the last weekend I felt like programming something fun and easy, so I thought, why not write yet another pandemic/epidemic simulation.
So between helping a crying child and preparing lunch, I created simpandemic. It’s small, simplistic, but easy to play with and change parameters. As a toy project, it’s far from perfect. I implemented infection based on distance rather than collision detection, like some other simulations do, and optimized it using a grid and not a tree structure (e.g. rtree). However, it works, it is playable and very much tweak-able.
Right now it depends on pygame, which is great fun, but a bit of a pain to get it working on mac these days.
Feel free to download it, fork it, play with it, whatever. I’ll accept fun pull requests in case these actually come.
Stay healthy, stay safe, stay home!