Skip to content

NeedsSoySauce/Virus-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

image

Virus Simulator

This is a simple Python application that simulates the spread of a virus within a population.

Features

Beyond the given specifications for this assignment, a few things were added:

  • A spatial hash table to improve the performance of collision detection
  • A static class to generate color gradients between a given start and end color
  • A base Virus class which can be subclassed to create viruses compatible with this application, and which was used to add the following:
    • RainbowVirus, a virus which infects people with a synchronised animation through the colours of a rainbow
    • ZebraVirus, people infected with this virus individually alternate between black and white
    • ImmunisableVirus, people who are cured of this virus cannot be infected by it again
    • ZombieVirus, people infected by this virus will chase after people who aren't infected by any virus
    • SnakeVirus, a virus which forms a snake with those infected by it that chases after people who aren't infected by any virus

About

Simulate the spread of various viruses within a population.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages