In BGRC (Bot Genetic Reproduction Code) nothing about a bot is scripted. Every bot carries a genome, and everything it does, from how fast it walks to whom it can mate with, comes from that genome. Here is how it works, without the maths.

Part 1: traits

Each bot has a row of traits, each a number from 0 to 7: body, size, speed, health, fertility, libido, gender, immunity, and in the game modes productivity, greed and craziness. Size decides how far a bot can reach to mate. Speed decides how often it steps. Health sets its hit points, and immunity how well it shrugs off disease. Color is stored as a real red, green and blue value.

Part 2: the commandment

The second part is a short list of movement orders: a direction and how long to walk. When a bot finishes one move, its genome picks the next order. That is why families of bots move in recognisably similar ways: they inherited the same list.

Part 3: number functions

The third part is the unusual one: five small number functions per bot. They act like the bot's own private dice. When a child is born, these functions decide which parent each trait comes from, and they pick the bot's next movement order. Because the functions themselves are combined and passed on, randomness in BGRC is inherited too. Two bots with the same traits can still behave differently.

Mating and inheritance

Two bots can have a child when they are adults, close enough, compatible and fertile. There are eight genders; a pair is compatible when their genders differ in one or two of three aspects. Close relatives usually refuse each other, and bots tend to prefer partners who look similar. A child takes each trait from one parent, gets a color that is one parent's, a mix of both, or a fresh random color, and blends both parents' body shapes. Now and then a mutation changes something completely.

What you see over time

Run a world for a few hundred years and patterns appear. Colors drift and lineages split into look-alike groups. Diseases appear, mutate and spread, and immunity rises in the families that survive them. In game modes, bots whose colors match the land are harder for predators to spot, so camouflage slowly evolves where predators are common.

The Chronicle keeps track of the big moments: crashes, recoveries, new lineages, and the mutation that saved a population during a crisis. Open it after a long run to read the story your world wrote by itself.

Try it

BGRC runs in your browser, on Android and on Windows, macOS and Linux. Start in Simulation mode to watch evolution, then try a game mode and this week's challenge, where everyone plays the same world.