Difference between revisions of "Reproducing"

From WikiManual
Jump to: navigation, search
(2.4 notice)
m (Fixed typos)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
=Reproducing=
+
In Darwinbots there are three primary methods of reproduction. Mitoses, Sexual and Mutational.
  
In darwinbots there are 3 ways of reproduction. Mitoses, Sexual and Mutational.
+
==[[Sysvars]]:==
 +
{{Reproduction}}
  
==Mitoses==
+
==Examples:==
This way of reproduction is very simple. The bot reproduce and copies its DNA entirely. This action is performed with the command .repro. The number before tells what percent of your energy is being transfered into the child.  Reproduction takes a single cycle, after which a new bot is produced directly in front of you (ie: eye5) and facing you.
+
cond
 +
  *.nrg 6000 >
 +
start
 +
  50 .repro store
 +
stop
 +
If the bot has more than 6000 [[energy]] it stores "50" in memory location 300 (.repro). This causes Mitoses reproduction in front of the bot if there is enough free space: "50"% of the bots energy and body points get transferred to a new bot in front of this bot.
  
(not so sure about this one, it's been a while since I looked --[[User:Numsgil|Numsgil]] 13:20, 18 Sep 2005 (MST)) refvars take another cycle to register for a newly formed baby. Thus, all bots of age 0 read 0 for refeye, refnrg, refbody, etc.
+
==Reproduction control==
 +
.robage stores the age of the bot in cycles up to 32000
  
==Sexual==
+
.mass stores the mass of a bot (energy and body points)
This way of reproduction is more complicated, and is generally less supported in new updates, making it potentially buggy. It takes the DNA of a random bot around it and mixes it with its own to create a new bot. This action is performed with the command .sexrepro
 
  
*[[Diploidity]]  
+
A reproduction gene that only gets activated by ".nrg > 2" can easily mutate into a [[Cancerous Bot]] or a sterile [[Big Bertha]].
*[[Chromosomes]]
 
  
=== 2.4 notice ===
+
==Mitoses==
I have no idea what a sexrepro command will do in 2.4 since the DNA is less formally organized. (--[[User:Numsgil|Numsgil]] 13:24, 18 Sep 2005 (MST))
+
.repro allows a bot to reproduce an exact duplicate of itself. The number stored in .repro defines the percentage of [[energy]] and [[body]] to transfer into the child. Like all reproduction methods this takes a single cycle, after which a new bot is produced directly in front of you (ie: eye5) and facing you.
  
So I have disabled it in later versions. I'll reimplement it as a form of Horizontal gene transfer later after 2.4 is stable.  --[[User:Numsgil|Numsgil]] 08:30, 25 Oct 2005 (MST)
+
While the eyes begin working immediately for the newborn, it takes a cycle before the refs begin reading back. This can cause wasteful attacks by the child, a good idea then is to limit the child's firing until at least one cycle of age.
  
 
==Mutational==
 
==Mutational==
Identical to mitosis .repro except mutation rates are 10x what they are normally. Will cause mutations even if your regular mutations are disabled.
+
.mrepro is like .repro but mutation rates are 10 times the normal values. This reproduction method will cause mutations even if all mutation settings are disabled.
 +
 
 +
==Sexual==
 +
The command [[.sexrepro]], takes the DNA of a bot that has shot the bot with a sperm shot and mixes it with a bot's own to create a new bot's DNA. A bot can discover that it has been shot by checking the [[.fertilized]] [[Sysvar|sysvar]].
  
=== Sysvars ===
+
==Future Stuff==
* [[Definitions]]
+
 
* [[.up|Movement (.up, .dn. .dx, .sx)]]
+
On the drawing boards are:
* [[.aimdx|Basic Turning (.aimdx, .aimsx)]]
+
*[[Diploidity]]  
* [[Shooting]]
+
*[[Chromosomes]]
* [[Reproducing]]
 
* [[Robot DNA]]
 

Latest revision as of 21:44, 14 February 2014

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

Sysvars:

Reproducing:

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

Examples:

cond
 *.nrg 6000 >
start
 50 .repro store
stop

If the bot has more than 6000 energy it stores "50" in memory location 300 (.repro). This causes Mitoses reproduction in front of the bot if there is enough free space: "50"% of the bots energy and body points get transferred to a new bot in front of this bot.

Reproduction control

.robage stores the age of the bot in cycles up to 32000

.mass stores the mass of a bot (energy and body points)

A reproduction gene that only gets activated by ".nrg > 2" can easily mutate into a Cancerous Bot or a sterile Big Bertha.

Mitoses

.repro allows a bot to reproduce an exact duplicate of itself. The number stored in .repro defines the percentage of energy and body to transfer into the child. Like all reproduction methods this takes a single cycle, after which a new bot is produced directly in front of you (ie: eye5) and facing you.

While the eyes begin working immediately for the newborn, it takes a cycle before the refs begin reading back. This can cause wasteful attacks by the child, a good idea then is to limit the child's firing until at least one cycle of age.

Mutational

.mrepro is like .repro but mutation rates are 10 times the normal values. This reproduction method will cause mutations even if all mutation settings are disabled.

Sexual

The command .sexrepro, takes the DNA of a bot that has shot the bot with a sperm shot and mixes it with a bot's own to create a new bot's DNA. A bot can discover that it has been shot by checking the .fertilized sysvar.

Future Stuff

On the drawing boards are: