.totalmyspecies
How many living bots there are of your own species, including the one reading it.
Facts
- Address
- 402
- Name
.totalmyspecies- Kind
- Sense: the engine writes it for the DNA to read
- Group
- Position and surroundings
- Written by
- The engine, in the actions phase of every cycle: the living bots of your species, the bot itself included. You read it in the next cycle.
- Cleared
- Nobody; the engine rewrites it every cycle.
- Range
- 0 to 32000.
- Mutations
- picked as a read (
*)
.totalmyspecies counts the living bots of your species, including the one reading it; corpses don't count. The species is recognized by name: all the descendants that keep the species name count, even if they have mutated (see Species and lineage). The engine publishes it at the end of each cycle, and in the first cycle of life it is 0.
It's the classic tool for keeping a species from choking itself: stop reproducing once there are enough. .totalbots, on the other hand, counts everyone in the world.
' reproduces only while the species has fewer than 30 bots
cond
*.totalmyspecies 30 <
*.nrg 5000 >
start
50 .repro store
stopThe count has a cap of 32000, which in practice is never reached.