.tielen2
Length of a multicellular bot's second tie, edge to edge; writing it sets that tie's natural length.
Facts
- Address
- 485
- Name
.tielen2- Kind
- Input and output: both the bot and the engine write it
- Group
- Ties
- Written by
- Your DNA and the engine, as in
.tielen1, for the second tie. - Cleared
- The engine rewrites it every cycle, under the same conditions as
.tielen1. - Range
- from about −240 (overlapping bots) up to 32000
- Mutations
- picked as a read (
*) and as a store target
It works the same as .tielen1, but for the bot's second tie, counting from the oldest one it has left (if an earlier one breaks, this one shifts up a slot). It only acts if the bot is multicellular (.multi) and that tie is stiffened; otherwise, the engine doesn't touch the cell. It doesn't touch it either if .tienum and .tiepres are both 0.
When read, it gives the distance to the partner minus the two radii, measured before the engine moves the bots. When written with store or another two-operand store, it sets that tie's natural length for both ends, like .fixlen but without picking it with .tienum. With inc or dec the tie doesn't find out.
' bring the second tie closer
cond
*.multi 1 =
*.tielen2 50 >
start
50 .tielen2 store
stopThe angle of this tie is read and set with .tieang2.