🧠

Neurons

Python104 lines· A terminal animation that simulates "neurons" on a grid. Each neuron randomly dies or moves in one of four directions on every tick, producing an e…
Original project by @Zedeldi — view source on GitHub
Ready when you are
README· what to build

Neurons

A terminal animation that simulates "neurons" on a grid. Each neuron randomly dies or moves in one of four directions on every tick, producing an evolving pattern printed to the terminal.

Example

The terminal fills with a live-updating grid of block characters (██) representing neurons. On each tick every neuron either dies or moves one cell in a random direction, producing a shifting, organic-looking pattern that runs until all neurons have died, then restarts.

                                                        ██
              ██
                                    ██
        ██                ██
                    ██

How to run on localhost

python main.py

Dependencies

Standard library only.

neurons.py· Python 3.x
107 lines
Console· terminal