Bots and Simulations > DNA - General
my tryouts. Help plz
Numsgil:
Not directly, no. Natural selection will do this overtly given enough cycles. You could also program a bot where each gene stored values in certain locations if it activated.
Endy:
To a very limited extent yes. The last gene to activate of another robot can be seen by storing *.thisgene in .memloc. It will readback the number in *.memval.
Possibly use *.thisgene 50 store in the last gene and check *50 to see what the second to last gene to activate was. If you keep track of what each gene does you could "tell" the bots what occured, would still be extremly difficult.
Would probably be a vast nrg waste also, so I wouldn't recommend it unless you could find a major advantage.
I'll take a look at this for you, I think there may be a relativly cheap way using inc/dec.
Welwordion:
^^ ok I will take a pause from the ring project I wanted to make them reproduce in line that afterwards wraps around an algae but could not even create the line. This tie angles are confusing.
Heres my last tryout I will just continue trying out some stuff not talking about any projects and when I am in the mood try to fix the ring thing.
P.S.:AAAAAAAAARRGGGGGGHHHHHH
'gen1
cond
*.numties 0 =
*.multi 0 =
*.eye4 *.eye5 > or
*.eye3 *.eye5 > or
*.eye2 *.eye5 > or
*.eye1 *.eye5 >
start
*.eye1 3 mult *.eye2 4 mult add *.eye3 5 mult add *.eye4 6 mult add 10 div
.aimsx store
stop
'gen2
cond
*.numties 0 =
*.multi 0 =
*.eye6 *.eye5 > or
*.eye7 *.eye5 > or
*.eye8 *.eye5 > or
*.eye9 *.eye5 >
start
*.eye9 3 mult *.eye8 4 mult add *.eye7 5 mult add *.eye6 6 mult add 10 div
.aimdx store
stop
'gen3
cond
*.vel 30 <
*.multi 0 =
*.numties 0 =
start
30 *.vel sub 2 div .up store
stop
'gen4
cond
*885 5 >
*.eye5 50 >
*.numties 0 =
*.multi 0 =
*.refeye 0 =
start
20 .tie store
20 .readtie store
628 .fixang store
stop
'gen5
cond
start
885 inc
stop
'gen6
cond
*.nrg 9000 >
*.eye5 10 >
*.multi 1 =
*.numties 1 =
start
*66 .aimsx store
*66 50 add 66 store
stop
'gen7
cond
start
60 .sharenrg store
stop
'gen8
cond
*.multi 1 =
*.numties 1 =
*.nrg 9000 >
start
70 .repro store
stop
'gen9
cond
*.eye5 30 >
*885 5 <
*.refeye *.myeye =
start
10 .tie store
stop
Numsgil:
--- Quote ---This tie angles are confusing.
--- End quote ---
My thoughts exactly. I'll probably go through some day and "simplify" them. :devil:
Botsareus:
Once again I must add to simplify them without simplifying their possibilities...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version