DarwinBotsManual
Open the app EspañolES

.readtie

Chooses, by its port, which tie the tref* cells (what the bot feels from the other end) come from; 0 uses the one in .tiepres.

Facts

Address
471
Name
.readtie
Kind
Command: the bot writes it and the engine reads it and usually consumes it
Group
Ties
Written by
Your DNA.
Read by
The engine, at the end of the forces and collisions phase: picks by its port the tie that the tref* cells come from. With 0 it uses that of .tiepres.
Cleared
Nobody: it stays until you change it. A child is born with 0.
Range
−32000 to 32000; 0 is “the one in .tiepres”
Mutations
picked as a store target

The cells of what it feels through a tie, such as .trefnrg or .trefage, describe one tied bot. With .readtie you choose which: write the port of that tie. With 0 the one in .tiepres is used.

Unlike .tienum, the engine doesn't clear it: it is a stable selection that stays until you change it. If the port you set doesn't exist, the tref* cells stay at 0.

The engine fills the tref* cells after the DNA runs, so you read them one cycle late, like any sense.

' always read the partner on tie 7
cond
*.robage 0 =
start
7 .readtie store
stop