Bots and Simulations > DNA - General

Need the right conditions

<< < (3/4) > >>

Welwordion:
Although function and swarming are 0 out1 does not become the same value as out3
'
target choosing
'head uses his x coordinate
cond
*.function 0 =
*.swarming 0 =
start
*.out3 .out1 store
stop


Maybe out3 is deleted every turn and is only refilled after the whole code is read?

Numsgil:
Hmm...

Try using a constant instead of *.out3 to make sure it's not another problem.

That looks like it should work.

Welwordion:
Tried to use *66 and 66 instead of *.out3 .out3 but no improvement.
(if you want to see the complete code just go into my communication network post I attached it as file(although thats probably a little long to read XD))

Numsgil:
No improvement meaning that *66 and 66 didn't work?

That would mean it's an issue with your DNA flow coding.  If it did make it better, that means it's an issue with the program.

PurpleYouko:
just a quick tip here.

When you want to comunicate between bots that are joined by ties, simply use one bot to write directly to a memory location in the other. This is always done right at the start of the program loop so it will be acted upon immediately by the other bot if it is monitoring a specific internal memloc for instructions from the head.

Don't waste time and effort with tmemloc and tmemval. Just "poke' the value directly into the memory.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version