neuroparticles2
Artificial life. Particles driven by cellular automata, fighting on a grid and evolving through genetic algorithms.
git clone https://github.com/xcontcom/neuroparticles2.gitxcontcom/neuroparticles2Neuroparticles (v2.0)
particles.mp4
This is a sequel to the original Neuroparticles, where particles were controlled by fully connected neural networks. In this version, we've replaced those networks with compact cellular automata - making the system simpler, faster, and fully symbolic.
Each particle is powered by its own evolving automaton, acting as a kind of logic-driven movement engine. Unlike traditional CA that updates a global field, here each agent uses CA to perceive its environment and decide how to move.
The result? A bunch of little critters that bump, group, chase, or dance across the grid - depending on what evolution teaches them.
What? o_O
Seriously, just check this out.
We take a grid filled with particles. Each particle is essentially a cellular automaton with 6 stages (for example).
We do this:
- Take a 13×13 chunk of the grid around the particle.
- Apply the particle's cellular automaton to that chunk.
- Trim the outer border → now we have an 11×11 chunk.
- Apply the automaton again.
- Trim again → 9×9.
- Repeat until we get a 3×3 block.
- That final 3×3 is used as a movement vector.
This 3×3 becomes a movement vector.
Example:
100
010
000
The particle moves to the upper-left.
Or:
001
001
001
The particle moves right.
So our field is filled with particles. Each particle is an entire cellular automaton. All automata are different. We evolve these automata using a genetic algorithm.
Demo
License
MIT License. See LICENSE for details.
Author
Serhii Herasymov
more like this
EvOLuTIoN
A simple simulation in Unity, which uses genetic algorithm to optimize forces applied to cubes
Mixed_Cell_Cellullar_Automata
The Mixed-Cell Cellullar Automata (MCCA) provides a new approach to enable more dynamic mixed landuse modeling to move…
cellular-automata-posters
Simple Python script that generates cellular automata posters as PDF files.