Author Topic: New DNA commands  (Read 3649 times)

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7713
    • View Profile
New DNA commands
« on: April 15, 2005, 08:02:42 AM »
Been talking with Zelos about the kind of DNA repair some organisms have over their own DNA.  Here are some useful commands we've come up with:

Delete gene (already exists)
Copy Gene (create a copy of a gene and place it randomly in the genome.)
Compare content (returns a boolean.  If the content of two genes is different, returns true.  Otherwise it returns false).
Gene length (returns the length of a gene.  Then you can compare length with another).

There are some others Zelos had in mind but these are the ones I'm most comfortable with.

Here's a method for limiting the possibility of a particularly useful gene mutating.  It's still alot of work though.

Create three copies.  Each gene saves it's *.thisgene to a memory location to one of three predefined memory location so the others can find it (that's some coding in and of itself).

Gene 3:
if gene 1 != gene 3
delete gene 1
copy gene 2

Gene 2:
if gene 3 != gene 2
delete gene 3
copy gene 1

Gene 1:
if gene 2 != gene 1
delete gene 2
copy gene 3

If any gene mutates the others catch it.  If gene 1 mutates, so it's overwritting the delete and copy genes before it, that's okay.  Eventually the copied gene 3 will be placed after gene 1, making the now gene 3 the one with the final say.

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
New DNA commands
« Reply #1 on: April 15, 2005, 11:09:46 AM »
hmm, interesting idea...  I'm for it.
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline Shen

  • Bot Destroyer
  • ***
  • Posts: 111
    • View Profile
New DNA commands
« Reply #2 on: April 15, 2005, 11:17:05 AM »
From a fighterbot perspective viruses are waaaaay overpowered. Basically kill a bot in one shot that travels the length of the field, and no defence against it. Some sort of antibodies similar to poison could protect against the initial gene insertion.

Im not up on my cancer treatment atm so I dunno :(

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7713
    • View Profile
New DNA commands
« Reply #3 on: April 15, 2005, 11:31:01 AM »
Slime protects against viruses.  Build more slime to stop viruses from getting you.

Offline Light

  • Bot Destroyer
  • ***
  • Posts: 245
    • View Profile
New DNA commands
« Reply #4 on: April 15, 2005, 04:09:41 PM »
Quote
From a fighterbot perspective viruses are waaaaay overpowered. Basically kill a bot in one shot that travels the length of the field, and no defence against it.
It is possible to detect and delete viruses with the current controls, just no one has released a bot that does, besides viruses that kill instantly aren't that usefull, its better to have ones that spread and weaken the entire species

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
New DNA commands
« Reply #5 on: April 15, 2005, 04:10:40 PM »
its good, then we can have viruses that mutate
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline Shen

  • Bot Destroyer
  • ***
  • Posts: 111
    • View Profile
New DNA commands
« Reply #6 on: April 15, 2005, 04:26:17 PM »
Its very complicated to defend against virus attack in F1, though I suppose it is possible. When I wrote Callidus I tried to put some virus protection in it and its so difficult that it made the bot much less effective. I just gave up and wrote a very simple single gene to stop the virus spreading but the system I had in mind was like this......

1: Basically I detected when there where more genes than usual with a *.genes 24 >

2: Next stage activate every single gene so it could record which number every gene was with *.thisgene in a custom varible.

3: Increment a timer that checks each gene one cycle at a time and if it doesnt match up with the gene number stored in the custom variable it deletes the gene.

Simple enough to program but...

4: Of course this means you need as many custom variables as you have genes, I used *.Mygene1-24.

5: Then your bot is disabled for 25 odd cycles while it checks your genome.

6: And still you have to suffer the virus affects so you need to store 0 in every likely attacked sysvar.

Pretty complex. Not that any virus bots can stop Callidus anyway  :evil:

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
New DNA commands
« Reply #7 on: April 15, 2005, 04:31:08 PM »
whit the new system it will be easier to detect mutations atleast. we have 3 brother genes and they allways watch over one and another so no one ever get it wrong on the "test" ;)
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
New DNA commands
« Reply #8 on: August 21, 2005, 02:27:44 PM »
long time since I were here before. but here I am with a few ideas that are simular. couldnt we also add so a bot is able to mutate it self? like a .mute commad. with it the bot mutate. the amount of dna mutated could be the number before it.
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline Greven

  • Bot Destroyer
  • ***
  • Posts: 345
    • View Profile
New DNA commands
« Reply #9 on: August 21, 2005, 02:40:22 PM »
I mean I somewhere read that bacteria is able to mutate more if they are exposed to pencillin(anti-biotic), maybe not a mutate command (it is to artificial), but the bot can set its temporariely set it own mutating parameters, like 2 x current value or 1/2 x current value, without getting to specific, with a cost of couse.
10010011000001110111110100111011001101100100000110110111000011101011110010110000
011000011000001100010110010111101001110100110010111100101000001000001111001011101
001101001110011011010011100011110100111000011101100100000100110011010011100110110
010110000011100111101001110110111101011101100110000111101001101001110111111011101
01100100000111010011010001100001110111010000010001001000010100001

Offline Zelos

  • Bot Overlord
  • ****
  • Posts: 707
    • View Profile
New DNA commands
« Reply #10 on: August 21, 2005, 02:49:17 PM »
there exist archaea bacteria that have the ability to mutate their own dna when the times get hard. and they do it by themselves
When I have the eclipse cannon under my control there is nothing that can stop me from ruling the world. And I wont stop there. I will never stop conquering worlds through the universe. All the worlds in the universe will belong to me. All the species in on them will be my slaves. THE ENIRE UNIVERSE WILL BELONG TO ME AND EVERYTHING IN IT :evil: AND THERE IS NOTHING ANYONE OF you CAN DO TO STOP ME. HAHAHAHAHAHAHAHA

Offline Greven

  • Bot Destroyer
  • ***
  • Posts: 345
    • View Profile
New DNA commands
« Reply #11 on: August 21, 2005, 02:52:28 PM »
Yeah, but by increasing somekind of mutation parameter, not saying that they specifly replace base-pair, because now they need another enzym or that like.
10010011000001110111110100111011001101100100000110110111000011101011110010110000
011000011000001100010110010111101001110100110010111100101000001000001111001011101
001101001110011011010011100011110100111000011101100100000100110011010011100110110
010110000011100111101001110110111101011101100110000111101001101001110111111011101
01100100000111010011010001100001110111010000010001001000010100001

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7713
    • View Profile
New DNA commands
« Reply #12 on: August 21, 2005, 04:44:02 PM »
If you .mrepro 99%, that's sort of a mutate command.

mrepro is often overlooked, but it's actually rather useful.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7713
    • View Profile
New DNA commands
« Reply #13 on: September 22, 2005, 01:27:37 PM »
I'm reexamining this sort of thing for use with the new gene controls.  Viruses are going to be able to propogate like mad soon (I'm loosening their controls the same as with DNA).  Basically, I'm thinking:

currpos: returns the position of the currpos command in the DNA strand.
"what's its value": (I'm not sure what to call it) returns the value of the bp at the DNA position pointed at the top location in the stack.
"what's its type" (I'm not sure what to call it) returns the type of the bp at the DNA position pointed at the top location in the stack.
delete: deletes the bp pointed at by the valueon the top of the stack.

For example: currpos delete would delete currpos from the genome.

(Note that *thisgene would basically be analogous to currpos, but I'll get to that later).

These would all be commands, so you could do lots of deletions in a single cycle.  

The idea is to give bots the ability to delete DNA better than the delete mutations alone allow.  A self policing ability.  Of course, this needs to be balanced with rogue viruses deleting all the DNA in their host, which would just make them even more powerful.

Offline gymsum

  • Bot Destroyer
  • ***
  • Posts: 215
    • View Profile
New DNA commands
« Reply #14 on: May 09, 2008, 12:22:33 AM »
While we're add it we need some sort of mechanism to create viral immunities, basically the strength of a virus on a host can be counteracted by some other value, such as minerals, or vitamins. I imagine it might be possible to add say penecillin, since its a biproduct in nature that could be done using a new waste type, and some slime/shell.