DarwinBotsManual
Open the app EspañolES

.trefeye

How many times the tied bot's DNA reads one of its eyes: the signature count most used to recognize members of your species.

Facts

Address
463
Name
.trefeye
Kind
Sense: the engine writes it for the DNA to read
Group
What it feels through a tie (tref*)
Written by
The engine, in the forces and collisions phase: it copies the count of eye reads in the DNA of the tied bot (its .myeye). You read it in the next cycle.
Cleared
The engine, when you run out of ties or don't have the tie that .readtie asks for.
Range
0 to about 16000; in practice, a few units
Mutations
picked as a read (*)

Counts how many eye reads the tied bot's DNA has: each *.eye1…*.eye9 adds 1 (*.eyef doesn't count). It is the other bot's .myeye, read from your side of the tie. Like the rest of the signature (.trefup, .trefshoot…), it comes from the text of the DNA and not from what runs, so it only changes if the other bot mutates.

It is the most used tie sysvar in the Bestiary, almost always compared with your own: *.trefeye *.myeye = (or with %=, which allows a 10% difference): if the tied bot has the same number of eye reads as you do, it is most likely of your species. *.trefeye 0 = also shows up a lot; it is also true when no tie is being read, because then all the tref* are 0.

' If the tied bot isn't of my species, I break the tie
cond
*.numties 0 >
*.trefeye *.myeye !=
start
*.tiepres .deltie store
stop

The same trick with the bot you see is .refeye. Other ways of recognizing your own kind are in A bot that recognizes its own species.