Welcome To Darwinbots > Newbie
Hello, I'am new and I've got a virus question.
Peter:
I think I'am not patient enough for the zerobot-evolution, All that happens is a bot is suddenly moving(jay it's moving) it takes the oppertunity to reproduce and reproduce till it is forbidden by the program to reproduce, then it's killed by the dynamic costs I inplented. Sometimes one of the larger sipplings(probably couldn't reproduce due to space)survives and the same thing is going on, till they're all gone. Then another one is moving doing exact desame thing. I know there will come a time they will be smarter but that's probably costing much time. Even the "virus"-bots in the 1000 hour simulation from EricL aren't very smart and doing random stuff. And that's 1000 HOURS.
My question for a simulation I want to start with instead of one I want to let two specie's survive. With the use of an double alga. It isn't working I can't figure out what's wrong.
So what's wrong. If someone want's to tell me. I just don't get it.
' Alga shell/poison protection
'
' Vegetable
'
' This robot has three genes,
' necessary for it to reproduce,
' make a choice to take poison/shell,
' And create poison/shell protection.
' Energy is given to it by the program,
' by checking the "autotroph" box.
cond
*.robage 0 =
start
1 rnd 49 store
end
cond
1 *49 =
start
1000 *.shell sub .mkshell store
else
1000 *.poison sub .strpoison store
end
cond
*.nrg
6000
>
start
50
.repro
store
15
.aimdx
store
stop
end
Jez:
Stop not End, the program only sees the first gene!
End is only used once at the end of all the genes.
Pause your sim, select one of the bots on screen then right click on it and choose 'show robot info' now click 'dna' and you can see the genes the bot is using.
Peter:
Thanks
Oh , now I feel stupid I've got to use stop instead of end.
And there's even another question.
cond
*.numties 1 =
start
1 .tienum store
314 2 *42 mult 1 add mult .fixang store 'allebei dezelfde kant op!!
50 .sharenrg store
stop
I was trying to create a multibot and I can't get them to go to the same side
*42 supposed to be either 1 or 0. One of the two has 1 the other 0.
This is what I'am trying to do.
O--O
O_O
| . |
When I try they are doing this
O_O---
|
The anwser will probably be simple but I just don't get to the solution.
Numsgil:
--- Quote from: Peter ---314 2 *42 mult 1 add mult .fixang store 'allebei dezelfde kant op!!
--- End quote ---
Looks like it's working to me. One turns a quarter circle and the other turns half a circle. But I think you probably wanted something more like this instead:
314 -1 *42 mult 1 add mult .fixang store 'allebei dezelfde kant op!!
Peter:
It is not working with me. And what am I exactly seeing wrong in the code
314 ((2 *42 mult) 1 add) mult
314*((2*1)+1)=942
314*((2*0)+1)=314
This is what I am seeing in my code.
314 ((-1 *42 mult) 1 add) mult
314*((-1*1)+1)=0
314*((-1*0)+1)=314
This is what I am seeing in your posted code.
What am I seeing wrong.
Practical they're doing desame in the simulation. How does this work.
In fact I posted this twice, the first time it got stuck, is this happening more often.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version