.tin7
Tie input channel number 7: the value that the bot at the other end of the tie you're reading publishes in its .tout7.
Facts
- Address
- 426
- Name
.tin7- 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
.tout7of 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 .tout7. 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 .tout7 the species code of what it has in front of it, you read it like this:
' if my partner has someone in front of it who isn't one of ours, I count it in 57
cond
*.tin7 0 !=
*.tin7 *.out1 !=
start
57 inc
stopSee Inputs and outputs.