Bots and Simulations > DNA - General
Question on viruses
Numsgil:
--- Quote from: Ispettore ---okay, tell me if I'm wrong:
first line: create a new virus with this gene
second: spend 1000 nrg for the shot (very much) continuosly
--- End quote ---
Almost right. If a virus shot can't be produced just yet (because it hasn't been made yet), the bot will try to shoot the virus, fail, and not get charged any energy. It's part of a principle in Darwinbots where bots aren't charged for actions that are strictly impossible, or that conflict with other actions. 5 .up store and 5 .dn store won't cost the robot any nrg from trying to move, since the two impulses cancel out. Or if it tries to reproduce and there isn't enough room.
--- Quote ---But... if I'd like the robot to send a virus every 500 cycles? How should I use the vtimer?
--- End quote ---
You probably wouldn't use vtimer for this. You'd use either robage or timer or something like that.
--- Quote ---And also... if I wanted to put other genes in the virus?
--- End quote ---
One gene per virus. So it's not strictly possible, but if you single gene all your genes, you can pack unlimited information in a very long gene, and use that as a virus.
Ispettore:
ok... thank you for your explanations...
Navigation
[0] Message Index
[*] Previous page
Go to full version