DarwinBotsManual
Open the app EspañolES

.refaimdx

How many times the DNA of the bot you are looking at writes to .aimdx: one number in its species signature.

Facts

Address
705
Name
.refaimdx
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: how many commands writing to .aimdx the DNA of the bot your focus eye sees has, whether or not they run. 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 about 16000; 0 if you see a corpse or a shape.
Mutations
picked as a read (*)

It counts how many times the address of .aimdx (5, turn right) appears in the DNA of the bot being seen, right before a write word. Almost every bot that looks for food turns, so it is usually 1 or more; a vegetable that doesn't move usually has 0.

The rules are those of the whole signature (see .refup). Your own number is .myaimdx, and the one for the opposite turn is .refaimsx.

' what can't turn is probably a vegetable: time to eat
cond
*.eye5 0 >
*.refaimdx 0 =
*.refaimsx 0 =
start
-1 .shoot store
stop