DarwinBotsManual
Open the app EspañolES

.refsx

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

Facts

Address
703
Name
.refsx
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 .sx 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 .sx (3, thrust to the left) appears in the DNA of the bot being seen right before a write word. It is one of the signature numbers; the rules are those of .refup: what is written is counted, not what runs, it isn't recalculated every cycle, and it is 0 if there is nothing in sight.

Your own number is .mysx. Combined with .refdx it tells you whether the other has sideways movement in its repertoire, something typical of bots that dodge.

cond
*.eye5 0 >
*.refsx *.mysx !=
*.refdx *.mydx != or
start
-1 .shoot store
stop