Darwinbots Forum

Code center => Suggestions => Topic started by: MysticalDumpling on March 25, 2014, 04:50:05 PM

Title: Genes that an activate/deactivate other genes
Post by: MysticalDumpling on March 25, 2014, 04:50:05 PM
This would be convenient for an anti-virus system- instead of just keeping the conditions of the gene false, keep it from activating! This might also be useful for other applications, as well as being accurate in real life, like the "master switch" genes in animal development. However, these are not codules per-se, just genes tha can activate other genes instead of lines of DNA.
Title: Re: Genes that an activate/deactivate other genes
Post by: Shadowgod2 on March 27, 2014, 12:09:12 AM
actually you already can but what you propose changes the way dna is read in darwinbots i do believe.

here is an example of how

def trg 20
cond
*.trg 2 =
start
50 .repro store
stop
cond
*.trg 1 =
start
628 rnd .aimsx store
.trg inc
stop
cond
*.body 1000 >
*.trg 0 =
start
50 .repro store
.trg inc
stop

this bot should repro 2 times unless it doesn't turn enough
Title: Re: Genes that an activate/deactivate other genes
Post by: MysticalDumpling on March 27, 2014, 02:26:29 PM
Yes, but the genes have to be specially coded to do so. A foreign gene cannot be regulated like so.  :)
Title: Re: Genes that an activate/deactivate other genes
Post by: Botsareus on March 27, 2014, 07:27:32 PM
That kinda goes agents the philosophy of the whole current DNA engine. Believe it or not, I am using a similar approach for my next big project. But I do want to keep darwinbot DNA they way it is now, probably for originality only.