.trefshell
The shell that the tied bot at the other end of the tie has.
Facts
- Address
- 449
- Name
.trefshell- 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
.shellof the tied bot, rounded. 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, just like the other tref* sysvars. - Range
- 0 to 32000
- Mutations
- picked as a read (
*)
It holds the .shell of the tied bot, rounded to an integer. It's useful, for example, for dividing the work in a multibot: if the partner already has a shell, you don't need to make one (see .mkshell).
' Makes shell only if the tied bot has little
cond
*.numties 0 >
*.trefshell 100 <
start
10 .mkshell store
stop