Code center > Darwinbots3
HTML DNA (Re: Programming task (DNA editor))
spike43884:
--- Quote from: Peter on April 02, 2015, 01:50:29 PM ---You're oversimplifying HTML. The HTML5 spec, that's quite a bit to understand for the program. Many web developers have difficulty to produce valid html code, yet DB should understand which mutations can be done, which would take time and will cost performance.
As a HTML like language is the best match to DNA, what would a html or xml bot look like?
--- End quote ---
Ok, commands are grouped into their matching pairs
lets say we have slightly more than just the 4 possible items which each side of a base pair could be...
The starting program might look like
<A></B>
The simulation knows A can go with B, C, D or E but nothing else. It also knows B can do with A, C, D or E. At each mutation event it selects one of these 2 sides of the pair to be mutated, then off random chance will select a letter that matches...lets say B mutates this time
<A></D>
Results in that, but it could equally result in
<A></E>
Now the DNA will probably be longer than 1 pair, so A /E might suddenly make the bot go extinct because it has worse DNA.
Peter:
So what would a bot look like?
From this I think that fro example .repro would turn into <a><b/>. I don't how that would make it easier.
spork22:
It would confuse me a whole ton.
Navigation
[0] Message Index
[*] Previous page
Go to full version