hunar4321 / particle-life

A simple program to simulate artificial life using attraction/reuplsion forces between many particles
MIT License
2.93k stars 291 forks source link

a random idea #77

Closed ker2x closed 1 year ago

ker2x commented 1 year ago

adding a "probability" slider so that a particle have a random chance of interacting with another particle. The simulation goes (obviously) much faster and allow to add more point to the simulation, but the behavior is different when the probability change.

Note : not saved into model yet. "interesting model" assume probability = 100 to stay "interesting". I'll fix that.

ker2x commented 1 year ago

adding a freebie new model : "dna"

ker2x commented 1 year ago

i forgot to add that this PR include a major bugfix in https://github.com/hunar4321/particle-life/pull/77/commits/39306db700d884f6b9c4ed894471005e30be1608

i also just added a "randomize on spacebar" functionallity and another model.