Difference between revisions of ".sexrepro"
(Copyedited and added contextual links.) |
|||
Line 1: | Line 1: | ||
− | In darwinbots there are three primary methods of reproduction. | + | In darwinbots there are three primary methods of reproduction. Mitosis, Sexual and Mutational. |
==[[Sysvars]]:== | ==[[Sysvars]]:== | ||
Line 5: | Line 5: | ||
==Sexual Reproduction== | ==Sexual Reproduction== | ||
− | As of 2.43.1, .sexrepro allows sexual reproduction in which a bot is produced that | + | As of 2.43.1, .sexrepro allows sexual reproduction in which a bot is produced that combines DNA from two parent bots. |
− | Bots can fire -8 shots which act as sperm and carry the DNA of the bot that shoots them. When a sperm shot impacts another bot, the bot becomes fertilized. The sysvar .fertilized counts down the cycles remaining until the bot is no longer fertilized. If the bot gets shot with another sperm shot while fertilized, that DNA replaces the previous DNA and the .fertilization counter gets set to 10 again. | + | Bots can fire -8 [[.shoot|shots]] which act as sperm and carry the [[Robot DNA|DNA]] of the bot that shoots them. When a sperm shot impacts another bot, the bot becomes fertilized. The sysvar [[.fertilized]] counts down the cycles remaining until the bot is no longer fertilized. If the bot gets shot with another sperm shot while fertilized, that DNA replaces the previous DNA and the .fertilization counter gets set to 10 again. |
− | If a bot sets .sexrepro to a | + | If a bot sets .sexrepro to a positive value not a multiple of 100 while fertilized, it will sexually reproduce giving the offspring the specified percentage of it's resources. The offspring's DNA will be a mixture of the DNA from each parent, constructed with an internal crossover algorithm. |
Revision as of 16:52, 6 April 2008
In darwinbots there are three primary methods of reproduction. Mitosis, Sexual and Mutational.
Sysvars:
Reproducing:
|
Sexual Reproduction
As of 2.43.1, .sexrepro allows sexual reproduction in which a bot is produced that combines DNA from two parent bots.
Bots can fire -8 shots which act as sperm and carry the DNA of the bot that shoots them. When a sperm shot impacts another bot, the bot becomes fertilized. The sysvar .fertilized counts down the cycles remaining until the bot is no longer fertilized. If the bot gets shot with another sperm shot while fertilized, that DNA replaces the previous DNA and the .fertilization counter gets set to 10 again.
If a bot sets .sexrepro to a positive value not a multiple of 100 while fertilized, it will sexually reproduce giving the offspring the specified percentage of it's resources. The offspring's DNA will be a mixture of the DNA from each parent, constructed with an internal crossover algorithm.