Simulates the spread of an epidemic on a spatial grid.
Individuals transition between states: Susceptible (`~`): Can catch the disease from neighbors. Infectious (`#`): Actively spreading the disease. Recovered (`.`): Immune for a period before becoming susceptible again (SIRS), leading to continuous endemic waves across the ASCII grid.