Search found 411 matches

by UEZ
Mar 29, 2020 0:41
Forum: General
Topic: Corona virus simulator
Replies: 33
Views: 842

Re: Corona virus simulator

@badidea: lol, looks like an infection of a borg collective.


@BasicScience: is there a special candidate you are asking?
by UEZ
Mar 28, 2020 15:01
Forum: General
Topic: Corona virus simulator
Replies: 33
Views: 842

Re: Corona virus simulator

Very cool @dodicat.

@badidea: thanks for the link.
by UEZ
Mar 27, 2020 22:58
Forum: Libraries
Topic: raylib headers
Replies: 34
Views: 920

Re: raylib headers

I had the same problem. You need Raylib from here: https://github.com/raysan5/raylib/releases. Ok thanks, although I am not sure which one of the 9 "assets" to download. I used the minigw versions for Windows only. I don't know if msvc version is better (faster). I'm not using Linux or an...
by UEZ
Mar 27, 2020 22:32
Forum: Libraries
Topic: raylib headers
Replies: 34
Views: 920

Re: raylib headers

When I tried to run an example: Command executed: "C:\FreeBasic\fbc.exe" "C:\FreeBasic\raylib-fb-master\examples\2d.bas" Compiler output: C:\FreeBasic\bin\win32\ld.exe: cannot find -lraylib Results: Compilation failed System: FBIde: 0.4.6 fbc: FreeBASIC Compiler - Version 1.07.1...
by UEZ
Mar 27, 2020 9:36
Forum: General
Topic: Corona virus simulator
Replies: 33
Views: 842

Re: Corona virus simulator

One of my first ideas was to create zones and check infection there only to speed it up but I don't know whether it was a good idea... Yes, you can do a 'pre-selection'. You know that a particle or person in de top-right corner can never interact with bottom-left. Spilt the map in a grid. Only chec...
by UEZ
Mar 27, 2020 7:22
Forum: General
Topic: Corona virus simulator
Replies: 33
Views: 842

Re: Corona virus simulator

deltarho[1859] wrote:
UEZ wrote:well done but the move of the pixels are too turbulent imho...

@ShawnLG

Have a look at 'Randomize , 5'. Not only do we get a 'slowing down' but we also get top drawer randomness.

I would rather use a 2d Noise function to move the pixel if static moving vectors are not wanted.
by UEZ
Mar 26, 2020 7:30
Forum: General
Topic: Corona virus simulator
Replies: 33
Views: 842

Re: Corona virus simulator

Alive means not dead.^^ The pixel is infected (red) but still alive and with a probability of 5% the pixel will die. Alive = infected (not dead) + cured / inoculated. But this comment is confusing: Dim As Ubyte status, zone 'status: alive = 0, infected = 1, cured = 2, dead = 3, inoculated = 4 O...
by UEZ
Mar 25, 2020 22:50
Forum: General
Topic: Corona virus simulator
Replies: 33
Views: 842

Re: Corona virus simulator

Btw, I've updated the code above. One more thing, you have: If Particles(i).status = 1 Then If Particles(i).status <> 3 And Particles(i).status <> 4 Then 'don't check dead and healty pixels But status the status is 0,1,2, or 3 So this can be reduced to just: If Particles(i).status = 1 Then I think?...
by UEZ
Mar 25, 2020 22:00
Forum: General
Topic: Corona virus simulator
Replies: 33
Views: 842

Re: Corona virus simulator

@badidead: thanks for having a closer look to the code. Some of your code suggestions I had already made. But to avoid Sqr was a good hint. Well, my target was not create a realistic simulation with all possibilities and parameters because I don't have deep knowledge about the science behind. This i...
by UEZ
Mar 25, 2020 19:47
Forum: General
Topic: Corona virus simulator
Replies: 33
Views: 842

Re: Corona virus simulator

badidea wrote:
UEZ wrote:@ShawnLG: well done but the move of the pixels are too turbulent imho...

No 'Herd immunity' 100% infection rate.


Currently no immunization has been found...^^
by UEZ
Mar 25, 2020 18:32
Forum: General
Topic: Corona virus simulator
Replies: 33
Views: 842

Re: Corona virus simulator

@ShawnLG: well done but the move of the pixels are too turbulent imho... Here my contribution as I don't want to create another topic: 'Coded by UEZ build 2020-03-27 #include "string.bi" #Define _Dist(x1, x2, y1, y2) (((y2 - y1) * (y2 - y1) + (x2 - x1) * (x2 - x1))) #Define _Round(x) ((x +...
by UEZ
Mar 24, 2020 18:04
Forum: General
Topic: Parse string to tree structure (solved)
Replies: 55
Views: 1327

Re: Parse string to tree structure (solved)

@dodicat: thanks for testing. Very interesting approach to use the file system to create dir tree structure and read it out afterwards.

@badidea: thanks for testing. Now I can close this capture. ;-)
by UEZ
Mar 24, 2020 13:28
Forum: General
Topic: Parse string to tree structure (solved)
Replies: 55
Views: 1327

Re: Parse string to tree structure (solved)

@badidea: your list of paths has duplicates. Anyhow, can you please test this 4th try against your real data? Ist it working or still faulty? :-) I know that you have a working solution but this problem won't let me go now. ^^ 'Code by UEZ - proof of concept version 'Probaly still not working proper...
by UEZ
Mar 23, 2020 22:10
Forum: General
Topic: Parse string to tree structure (solved)
Replies: 55
Views: 1327

Re: Parse string to tree structure

@badidea: thanks for testing. Sad to hear that it still doesn't work properly... :-(

C'est la vie...

¯\_(ツ)_/¯
by UEZ
Mar 23, 2020 19:49
Forum: General
Topic: Parse string to tree structure (solved)
Replies: 55
Views: 1327

Re: Parse string to tree structure

@badidea: just for curiosity - does my 3rd attempt work now with you real data properly?

Go to advanced search