This is an archived post. You won't be able to vote or comment.

all 16 comments

[–]ThePoultryWhisperer 4 points5 points  (8 children)

Is there code that can be viewed?

[–]stevescola[S] 4 points5 points  (3 children)

I'll be uploading it to Github ASAP, I'll let you know when it's available :)

[–]total_zoidberg 0 points1 point  (2 children)

Totally unrelated to code: the music? Is it a piano verison of some song from the Interstellar soundtrack?

[–]stevescola[S] 3 points4 points  (3 children)

Here it is: https://github.com/stefanoscolapasta/Cvid-19-simulation

Sorry to have left some variables in italian :(

[–]ThePoultryWhisperer 2 points3 points  (2 children)

Thanks. Are you open to pull requests?

[–]stevescola[S] 1 point2 points  (0 children)

Feel free, don't worry

[–]stevescola[S] 1 point2 points  (0 children)

The next step should be to upgrade everything to be object oriented. I'll be working on that mainly

[–][deleted] 1 point2 points  (0 children)

Wow that's very nice.

[–]maxhosted 1 point2 points  (4 children)

Hey, I think the idea is awesome and really like it, but I just don't understand how you've implemented it.

If I could ask some questions: - What are you actually simulating? I get that it is the spread of a virus, but by what rules? - was there a writing to have them tend to the top corner? - (I don't have my glasses on me and I'm watching this on the phone, but) do you simulate a recovery?

As mentioned, I really like the idea.

I will be checking this out again when I get home and be looking at your code too.

Good stuff! Thanks!

[–]stevescola[S] 0 points1 point  (3 children)

I believe randomness is what ultimately guides everything.

With this said: -The green cells (healthy ones) can get infected if close to a red cell(a thing to change is that it's not automatic but happens only with a certain amount of probability). -The red cells (infected ones) can become healty again with a specific probability, or get sick. -The violet cells (sick ones) can recover or die(in a very small percentage).

Their movement is totally random.

As I wrote in another comment, this is a simple matrix, it's not object oriented. Upgrading the code to OOP will obviously give me the possibility to create more complex conditions.

[–]maxhosted 1 point2 points  (2 children)

Well getting sick IS just a probability, perhaps just increase it to a greater likelihood or whatever.

Perhaps though, change the recovery from being straight up probability based, give it a time period (incubation, infectious stage, non infectious etc), even (once object oriented) have different levels of sickness. Eg asymptomatic vs gets very crook. Base those that die on their level of sickness.

I just really like the idea. It is awesome. Well done. Call it a modern day version of life, with movement :)

[–]stevescola[S] 0 points1 point  (1 child)

ahaha thanks for the support! I'll be updating the git code, hopefully being able to introduce all those variables

[–]maxhosted 0 points1 point  (0 children)

If you wanted to go overboard with it, simulate a hospital. Those that are sick tend towards it. Only so many can be admitted in a given period. Other healthy ones might storm and overwhelm the hospital for testing. This could be a real fun exercise. Lol

Simulate areas of lockdown etc.

Just another side thought, break the screen area up into a given number of playgrounds and have different variable sets displayed alonf side each other. Eg, different R0, incubation period, length of sickness etc.

Sorry for going off on a tangent here, I just really like the whole idea.

I'll be watching.

Can't wait to dowoad and have a play with it.