Darwinbots Forum

Bots and Simulations => Evolution and Internet Sharing Sims => Topic started by: Welwordion on May 11, 2006, 01:54:49 PM

Title: lovely virus sims
Post 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:


Code: [Select]
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
Code: [Select]
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
Code: [Select]
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.
Title: lovely virus sims
Post by: Numsgil on May 11, 2006, 02:30:51 PM
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.
Title: lovely virus sims
Post by: Welwordion on May 11, 2006, 03:53:23 PM
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.
Title: lovely virus sims
Post by: Endy on May 13, 2006, 07:58:34 PM
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 =