Difference between revisions of ".sexrepro"

From WikiManual
Jump to: navigation, search
m
 
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
In darwinbots there are three primary methods of reproduction. Mitoses, Sexual and Mutational.
+
In Darwinbots there are three primary methods of reproduction. Mitosis, Sexual and Mutational.
  
 
==[[Sysvars]]:==
 
==[[Sysvars]]:==
 
{{Reproduction}}
 
{{Reproduction}}
  
==Sexual==
+
==Sexual Reproduction==
This way of reproduction is more complicated, and is generally less supported in new updates, making it potentially buggy. The command .sexrepro, takes the dna of the nearest bot and mixes it with a bot's own to create a new bot's dna.
+
As of 2.43.1, .sexrepro allows sexual reproduction in which a bot is produced that combines DNA from two parent bots.  
  
Currently this feature has been disabled in versions past 2.4, due to bugs. Plans are inplace to re-enable it when 2.4 is stable, so as to allow horizontal gene transfer.
+
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 .fertilized 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 its resources. The offspring's DNA will be a mixture of the DNA from each parent, constructed with an internal crossover algorithm.

Latest revision as of 22:29, 4 July 2008

In Darwinbots there are three primary methods of reproduction. Mitosis, Sexual and Mutational.

Sysvars:

Reproducing:

.robage 9
.mass 10
.timer 12
.repro 300
.mrepro 301
.sexrepro 302
.fertilized 303

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 .fertilized 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 its resources. The offspring's DNA will be a mixture of the DNA from each parent, constructed with an internal crossover algorithm.