Darwinbots Forum
Bots and Simulations => Evolution and Internet Sharing Sims => Topic started by: Welwordion on May 11, 2006, 01:54:49 PM
-
ok I thought, try out a virus sim for a minimal genome evolution an started with this:
cond
start
*.robage *.dnalen mod .mkvirus *.vtimer sgn 1 sub abs mult store
*.vtimer 1 sub sgn abs 1 sub abs .vshoot mult *.eye5 40 sub sgn 1 add sgn mult inc
12 30 *.thisgene add store
12 29 *.thisgene add * store
26 .delgene store
stop
end
And woah shortly after I got a really cool behaviour, the bots move and stop for a short time when spoting something.
[]= deciding mutation
cond
start
*.robage *.dnalen mod 335 *.vtimer * 1 sub abs mult store
*.vtimer 1 sub sgn abs 1 sub abs 338 mult *.eye5 40 sub sgn 1 add sgn mult inc
12 30 *.thisgene add store
12 29 *.thisgene mod * store
26 .delgene dec
stop
''''''''''''''''''''''''Gene 1: Last 'stop' at position 47''''''''''''''''''''''',
start
*.robage *.dnalen mod 335 *.vtimer sgn 1 [sgn] abs mult store
*.vtimer 1 sub sgn abs 1 sub abs 338 mult *.eye5 40 sub sgn 1 add sgn mult inc
12 30 *.thisgene add store
12 29 *.thisgene add * store
26 .delgene store
stop
''''''''''''''''''''''''Gene 1: Last 'stop' at position 93''''''''''''''''''''''',
end
Ok after this and an unsuccesful sim I started a new sim with the above bots, until finally something that reproduced evolved. This was also quite interesting as he reproduced turned moved a while and then reproduced and turned again.
[]= deciding mutation
start
*.robage *.dnalen mod 335 *.vtimer [6] 1 sub abs mult store
*.vtimer 1 sub sgn abs 1 sub >=
338 mult *.eye5 40 sub sgn 1 add sgn mult inc
12 30 *.thisgene add store
12 29 *.thisgene mod * store
26 stop
I hope I can make them evolve even further.
-
What's neat about mutations that involve math commands (DNA files are like a long calculator language) is that changing a single command can often times entirely change the way the function works, and so change a bot's behavior.
-
Yeah, I mean there was only a single mutation(and kind of a copy of the original) necessary for such a large behaviour change, and who would have guessed vtimer can be used that way.
Here I attached a condensed form of Dna causing the behavior I talked about.
-
Cool There was an article in Discover not long ago, about how something like mimivirus may have speeded up the evolution of early cells.
Condensed it comes to:
335 *.vtimer 5 mult store
Pretty decent bit of natural SG programming, it'll repro at *.vtimer 60 = and turn at *.vtimer 1 =