Giter Site home page Giter Site logo

virus_spread_simulation's Introduction

This is a toy simulation of how a virus spreads. Note: Since writing argparser is boring, you will need to open main.py, change globals and enjoy the simulation. We start with a given size of board and number of infected people (default: 1)

vir_sim

We have following parameters to play with BOARD_HEIGHT (default: 50) BOARD_WIDTH (default: 50) INFECTION_CHANCE (default: 0.8) Chance of being infected from a neighbor INFECTING_OPTION (default: "line") Defines the common element of two neighbors; either “line” or “point” INITIAL_INFECTED (default: 2) VIRUS_SEVERNES (default: 0.3) How hard it is to cure patients RECOVERY_RATE (default: 0.3) SEVERNESS_DECAY (default: 0.95) Rate by which VIRUS_SEVERNES drops after we begin recovering START_DEEPENING = 5 - after Nth day the health will slowly vatanam START_EMERGENCY = 10 - we drop the transportation and number of people treveling START_RECOVERING = 15 - PLOT_RESULTS shuffle_every=1, shuffle_qunatity=BOARD_HEIGHT * BOARD_WIDTH // 10, transportation_drop=3, infection_drop=2

Every morning the following happens: All infecteds peoples health codtination vatanuma All alive infecteds try to infect their neigbors Depending on which day it is ingectets health lavanuma virus severness drops aaaaaaaaaaaaaa, Apr lav chi etum sec

virus_spread_simulation's People

Contributors

hayktarkhanyan avatar aprikyan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.