DarwinBotsManual
Open the app EspañolES

.refkills

How many bots the bot you are looking at has killed: a way to recognize a predator.

Facts

Address
715
Name
.refkills
Kind
Sense: the engine writes it for the DNA to read
Group
What it sees (ref*)
Written by
The engine, in the actions phase of every cycle, with the kills (.kills) caused by the bot your focus eye sees. Also on colliding with a bot. You read it in the next cycle.
Cleared
The engine, every cycle, when the senses are cleared.
Range
0 to 32000; the port doesn't let it go past that.
Mutations
picked as a read (*)

.refkills is the kill count of the bot your focus eye sees: what that bot reads in its .kills. It goes up every time one of its shots or ties leaves another bot without energy or without body.

A value greater than 0 says the other has already killed someone: it is a predator, or at least a bot that shoots in earnest. It is useful for fleeing, or for going on the defensive (see Defenses). .refshoot tells you the same thing, with less certainty, since it only indicates whether the other knows how to shoot.

In this port the count is capped at 32000. If you see nothing, it is 0.

' a killer in sight: about-face and run
cond
*.eye5 0 >
*.refkills 0 >
start
628 .aimdx store
30 .up store
stop