DarwinBotsManual
Open the app EspañolES

.tin1

First tie input channel: the value that the bot at the other end of the tie you're reading publishes in its .tout1.

Facts

Address
420
Name
.tin1
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 .tout1 of the bot at the other end of the tie you read (.readtie or, if it is 0, .tiepres). You read it in the next cycle.
Cleared
The engine, when you run out of ties or do not have the tie that .readtie asks for. Otherwise it is reloaded every cycle.
Range
−32000 to 32000
Note
It arrives as is, without the random ±1 of the original. A newborn receives nothing while its .robage is 0, 1 or 2.
Mutations
picked as a read (*)

.tin1 brings in whatever the bot tied to you has written in its .tout1. The engine updates it every cycle, after your DNA runs, so what you read is what the other bot had published the previous cycle.

It reads one tie at a time: the one you choose with .readtie (by its number) or, if .readtie is 0, the most recently created tie, whose number is in .tiepres. All the tie inputs (.tin1 to .tin10 and the tref* senses) come from that same tie. To listen to a different partner, change .readtie.

Unlike .in1, it isn't cleared after your DNA runs: the engine reloads it every cycle for as long as the tie exists. It goes back to 0 when you run out of ties or when you have none with the number that .readtie asks for. A newborn receives nothing through the tie while its .robage is 0, 1 or 2: during that time .tin1 is 0 even if the parent is already publishing. The value arrives as is: the random ±1 that shows up in the data sheet above comes from an evolution mode of the original program that this port doesn't include.

One possible use: have a bot warn through the tie about what it sees, so the other one finds out even when it's looking the other way.

' everyone publishes through the tie what they have in front of them
start
*.eye5 .tout1 store
stop

' if the one next to me sees something and I don't, I save the alert in 50
cond
*.tin1 0 >
*.eye5 0 =
start
*.tin1 50 store
stop

There are ten identical channels, from .tin1 to .tin10; see Inputs and outputs.