.tin6
Tie input channel number 6: the value that the bot at the other end of the tie you're reading publishes in its .tout6.
Facts
- Address
- 425
- Name
.tin6- Kind
- Sense: the engine writes it for the DNA to read
- Group
- Inputs and outputs
- Written by
- The engine, in the forces and collisions phase: copies the
.tout6of the bot at the other end of the tie you read. You read it in the next cycle. - Cleared
- The engine, when you run out of ties or do not have the tie that
.readtieasks for. - Range
- −32000 to 32000
- Mutations
- picked as a read (
*)
It works like .tin1: it brings in whatever the bot at the other end of the tie you're reading (the one you choose with .readtie or, if you didn't choose, the most recently created one) has written in its .tout6. It arrives one cycle late, and the engine reloads it every cycle for as long as the tie exists; it goes back to 0 when you run out of ties. All the .tin channels come from the same tie in the same cycle.
If your partner publishes in .tout6 the type of the shot that just hit it, you read it like this:
' if my partner got hit, I store the alert in 56
cond
*.tin6 0 !=
start
*.tin6 56 store
stopSee Inputs and outputs.