Code center > Bug reports
Is sexual reproduction broken?
Billy:
I've been writing a bot (Rapeseed) that's supposed to shoot sperm at other bots when attacked and force sexual reproduction, and if its gene appears in the child bot then it deletes the other genes, becoming a clone of Rapeseed, if you see what I mean. It isn't working. The attacker bot is fertilized and .sexrepro is set to 99, but it refuses to undergo sexual reproduction. The memory locations .fertilized and .sexrepro then become fixed at (usually) 9 and 99 respectively after Rapeseed is dead. To my knowledge, that isn't meant to happen.
Is this a bug, or does sexual reproduction perhaps only work between bots of the same species?
Edit: Here's the DNA of Rapeseed so far, just in case it's something to do with that.
--- Code: ---'Rapeseed
def forcerep 100
start
*.thisgene 2 sub -1 mult 0 floor 2 mult *.thisgene 1 sub sgn add *.genes 1 sub sgn mult .delgene store
16000 *.chlr sub abs .mkchlr 16000 *.chlr sub sgn 0 floor mult .rmchlr *.chlr 16000 sub sgn 0 floor mult add store
*.nrg *.body sub abs .strbody *.nrg *.body sub sgn 0 floor mult .fdbody *.body *.nrg sub sgn 0 floor mult add store
.aimdx inc
*.nrg 5000 sub sgn 0 floor 50 mult .repro store
*.shang *.shflav sgn abs mult .aimshoot store
*.forcerep 1 sub abs .forcerep store
-8 *.forcerep 1 sub abs mult .sexrepro *.forcerep mult add *.shflav abs sgn mult .shoot store
99 *.forcerep mult .shootval store
stop
--- End code ---
Botsareus:
Been a while Billy, welcome back.
Robots must be similar enough to reproduce, if a robot is less then 40% similar then the mother has a 'birth defect' and can not get prego again for 8 cycles.
Attached is two robots I love to test sexrepro with.
Panda:
BILLLLLLLLLLLLLLLYYYYYYYYYYYYYYYYYYYYYYYYY! Hey! :D
Botsareus:
Billy, try a virus...
Billy:
Hi Panda. :)
Thanks for the welcome, and the bots, Botsareus. I was not aware of that feature of sexual reproduction, perhaps it was added since I was last active here. I have made similar bots using viruses before now.
Navigation
[0] Message Index
[#] Next page
Go to full version