The Particle Life Simulation is a simple program that simulates artificial life using basic rules of attraction or repulsion among atom-like particles. This results in the creation of complex self-organizing life-like patterns. The code for the simulation is less than a page long, excluding GUI elements. The program can be run online through a JavaScript version or downloaded for C++, JavaScript, or Python. The author encourages users to explore different parameter settings to discover interesting patterns. The program does not include collision detection, allowing for real-time simulation of thousands of particles. The author also highlights the potential for further improvements, such as adding more particle types and finding alternative methods for calculating pairwise distances.
https://github.com/hunar4321/particle-life