hunar4321 / particle-life

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

Various enhancements #23

Closed skal65535 closed 1 year ago

skal65535 commented 1 year ago
skal65535 commented 1 year ago

Hi!

here are some enhancements i found useful on my local version. Not sure if you can use them (even partly), but here they are! That was a fun to toy around with the initial code, thanks for that!

skal/

hunar4321 commented 1 year ago

Thanks! the default rule you put is very interesting! I didn't expect JavaScript to get this far. It may top-up the C++ version at some point :)

skal65535 commented 1 year ago

Indeed, some rules get interesting even with only four types. For instance:

25235386572586 => 3-color 'spinners' with red missiles cruising !

59229248068973 => same, but with 'pulsars' instead of spinners

103450573061445 => some unstable 'cells' over an hex substrate

fun!