.treffixed
It is 1 if the tied bot is fixed in place, 0 if it can move.
Facts
- Address
- 478
- Name
.treffixed- 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: 1 if the tied bot is fixed (
.fixed), 0 if not. You read it in the next cycle. - Cleared
- The engine, when you run out of ties or don't have the tie that
.readtieasks for. - Range
- 0 or 1
- Mutations
- picked as a read (
*)
It is 1 if the tied bot is anchored (because it wrote to .fixpos) and 0 if not. It is the other bot's .fixed, read through the tie; the sight version is .reffixed.
It's useful in organisms where one cell acts as an anchor and the others move: if you know the other end is fixed, pulling on it won't move it.
' If the tied bot is fixed, I anchor myself too
cond
*.numties 0 >
*.treffixed 1 =
start
1 .fixpos store
stop