Bots and Simulations > DNA - General

Need the right conditions

(1/4) > >>

Welwordion:
ok first:

cond
*.function 0 =
*.swarming 0 =
*.refeye *.myeye =
*.eye1 *.eye2 add *.eye3 add *.eye4 add *.eye5 add *.eye6 add *.eye7 add *.eye8 add *.eye9 add 0 =
or
start
.out3 .tmemloc store
*.tmemval .out1 store
stop

Duid I use the or right? I want it to activate when it sees only his brethren or nothing.


second:

cond

start
.satposx .tmemloc store
*.tmemval .satposx store
stop

cond

start
.satposy .tmemloc store
*.tmemval .satposy store
stop

In order to move the tied unit will be killed, before that happens this information has to be stored.
However the surviving unit uses satposx and satposy usually for his own information storage.
So which cond to insert?

Numsgil:
The first gene looks right.  As to the second,

it takes a full cycle between when you set tmemloc or memloc and when you can read the value back from tmemval or memval.

Welwordion:
Well I could scream ^^, you think: lets just programm a basic ability and leave the rest up to evolution, but you end up with a smoking head trying to figure out how to make this ability work out.

Numsgil:
I would use the in/out pair to commincate coordinates.

Welwordion:
If the head has to face the eye(head and eye = parts of the multibot) to read this information, there is no purpose in making this a multibot

well in1 and out1 are for extern information exchange in3 and out3 for intern(head and eye) information exchange.
(probably I should use the racial memory)

Navigation

[0] Message Index

[#] Next page

Go to full version