DarwinBotsManual
Open the app EspañolES

What DarwinBots is

DarwinBots is an artificial life simulation: bots with DNA that move, eat, reproduce, mutate and evolve. This is version 2.48.32, ported to the browser.

DarwinBots is an artificial life simulation. A flat world is home to some simple organisms, the bots, and each one carries its own program: its DNA. The DNA tells it what to do at every moment: move forward, turn, shoot to eat, make defenses, tie to another bot, reproduce. Nobody drives the bots from outside; you set up the world and watch what happens.

Things get interesting when the bots reproduce. When the DNA is copied for the child, a random error can slip in: a mutation. Almost always the change breaks something or changes nothing you can notice, but every once in a while a bot comes out that eats better, escapes better or reproduces faster. If it leaves more children than its neighbors, its version of the DNA gradually takes over the world. That is evolution by natural selection, and you can watch it happen right in front of you.

What the world is like

The DNA is a small stack-based programming language, with genes that switch on when their conditions are met. This is a complete bot that moves forward all the time:

' Always moves forward
cond
start
 10 .up store
stop
end

If you've never programmed, don't worry: you can use the whole app without writing a single line, by seeding the bots that already exist. And if you want to learn, the chapter The DNA language starts from scratch.

This version

DarwinBots began as a Windows program. This is its version 2.48.32 ported to WebAssembly: the same simulation engine, rewritten to run in the browser.

There are two interfaces. The new app, in Spanish and English, is the one this manual describes. The classic interface, at /classic/, is the first web version, in English and closer to the original program; it keeps being published as it is (see The classic interface).

What you can do

If you want to…Go toAnd read
Watch a living world: how they hunt, hide and multiplyHome and ObserveYour first simulation
Experiment: change the light, the costs, the physics, add obstacles, and see what happensExperimentExperiment
Measure: population charts, species, family tree, replicates with several seeds, reportsAnalyzeAnalyze
Write bots: a DNA editor with warnings, quick test and versionsBotsThe DNA editor and the tutorials
Compete: matches and tournaments between bots, with standings, Elo and seasons that play themselvesCompeteCompete

Where to go next

  1. Your first simulation: from opening the app to having a world running, with a bot of your own inside, in a few minutes.
  2. A tour of the app: what each section of the app is for.
  3. A bot that moves: your first bot, step by step.
  4. The cycle and the order of actions: how the world works on the inside.

If you run into a word you don't know, it's in the Glossary. The most common questions are in Frequently asked questions.