On the Evolution of the brain.. the Gnome’s brain.
Before I started to work as a programmer I studied paleontology. No joke here.. I was one of those guys who are said to use a toothbrush in the desert to scoop up some old bones.. yet in my case it was a large motorized saw with a blade to cut into stone and mostly very very old trees.
Anyway.. evolution is still one of my favorite topics and sometimes a game can be closer to life than you’d expect.
In this case we can talk about a Gnome’s brain.
The proto Gnome, barely “alive” enough to have a single need: hunger, has to do nothing more than eat, find food, sleep and maybe dig into rocks….
Therefore the “Brain” looks quite simple:

As you can see the Protognome has only a very limited set of rules, working a single job on demand and otherwise either idles, eats or sleeps. A perfect member of society ;)
A few months later, let’s say in the “Hunter & Gatherer” phase of my Gnomes’ evolution their brain has heavily developed:

Instead of just fighting for survival we now have several jobs and no longer “rules” but priorities. Survival always has a higher priority than finishing work (yeah.. no longer the perfect member of society..) but if possible work has to be finished first anyway. Job scheduling is handled outside the brain through the player who can assign certain priorities based on a Gnome’s profession:

This way the player can somewhat control the way jobs are handled without meddling with the brain of each Gnome separately.
Keen eyes may have spotted that, also, I no longer update the brain on each tick but 60x a second. This is a performance improvement and also allows the scene to fully “settle” before another choice is made.
Now in the medieval stage where I currently work with them only minor changes came up:

There is the minor refinement of adding a “distance penalty” to jobs. If jobs have the same priority (see, for example, the All-Rounder) the closest job is what a Gnome will take. This prevents, for example, hauling jobs that happen dozens of tiles away while mining on the next tile is marked as a job. And the major change is the “interrupt” system allowing me to “interrupt” whatever a Gnome is doing each “brain tick”. A sleeping Gnome, without interrupts, might be eaten by a wolf or a crafting Gnome wouldn’t notice that he is starving to death.. so interrupts are important to keep things somewhat sane.
Well.. let us see where evolution leads the little Gnomes next.
Originally published on itch.io on 2026-10-11 — original post.