DarwinBotsManual
Open the app EspañolES

.in5

Input channel number 5 through sight: the value that the bot in your focus eye publishes in its .out5.

Facts

Address
814
Name
.in5
Kind
Sense: the engine writes it for the DNA to read
Group
Inputs and outputs
Written by
The engine: copies the .out5 of the bot you have in your focus eye, or of the bot you collide with. You read it in the next cycle.
Cleared
The engine, when the senses are cleared, right after your DNA.
Range
−32000 to 32000
Mutations
picked as a read (*)

It works like .in1: it brings what the bot you are looking at with the focus eye (or the one that collided with you) has written in its .out5. It arrives one cycle late and the engine clears it after every run of your DNA, so it is 0 when you see no bot and also when the other one does not use that channel.

What each channel means is decided by whoever writes the bot: the engine just copies the number. That is why it is a good idea to first confirm with .in1 that the other one is of your species. If your species publishes in .out5 the species code of what it has in front of it, you read it like this:

' if a companion has in front of it someone who is not one of ours, I count it in cell 55
cond
*.in1 *.out1 =
*.in5 0 !=
*.in5 *.out1 !=
start
55 inc
stop

See Inputs and outputs.