Infection Simulator


This is a two-dimensional simulator that simulates the infection of entities moving at random on a two-dimensional plane. The user is given the option to input parameters, including the size of the two-dimensional plane, the amount of starting infectious units, the amount of starting non-infectious units, and in one branch, the amount of “healers” and other such. (As of posting, healers have not yet been implemented)

The two-dimensional plane may represent a central train station, shopping centre, park or any other open-plan
social space in the real world.

Entities, who are called “Units” in the program, move at random for the sake of simplicity.


Simply run the program, and the terminal prompts will guide you. Please enter integers when prompted for a number.