Images are now saved and you can have randomized values at the generation and a name can be chooen for the simulation

This commit is contained in:
2022-05-05 11:36:37 +02:00
parent beb4658c95
commit c8b38b5d6b
6 changed files with 331 additions and 184 deletions
@@ -197,10 +197,11 @@ namespace PropagationRemasteredBeta
});
});
//Parallel.ForEach(PeopleToCheck, target =>
foreach (Human target in PeopleToCheck)
{
Population[target.Position.X,target.Position.Y] = target.CheckInfection(InfectionRate,Rnd);
}
Population[target.Position.X, target.Position.Y] = target.CheckInfection(InfectionRate, Rnd);
}//);
foreach (Human target in InfectedsToCheck)
{
Population[target.Position.X, target.Position.Y] = target.CheckDeath(DeathRate,CureTime,Rnd);