Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game of Social Distancing

This is a rough alpha release.

This is a little cellular automaton inspired by Conway's Game of Life. Here's the Demo.

Rules are simple:

  1. The world is a grid of X * Y cells;
  2. An agent (sim person) can appear (blue) in a cell based on "Density Rate";
  3. That agent has a percentage chance of being infected (yellow), "Initial Infected Rate";
  4. Each agent can move in 9 possible directions picked at random;
  5. If two or more agents end up on the same cell, that's a close contact event;
  6. If any agents in close contact is infected, the other healthy agents in the same group may get infected depending on "Transmission Rate";
  7. After the "Infection Period" is over, agents either recover (blue) or die (black);
  8. Dead agents are buried (light grey) after a certain number of days after dying.
  9. Simulation stops when number of infected and recently died agents reach zero, or when the maximum number of days (currently set to 3 years) is reached.

Contributions are most welcome. Have a look at TODO.txt for ideas.

About

Game of Social Distancing (alpha)

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages