Bots and Simulations > Evolution and Internet Sharing Sims
lovely virus sims
(1/1)
Welwordion:
ok I thought, try out a virus sim for a minimal genome evolution an started with this:
--- Code: ---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
--- End code ---
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: ---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
--- End code ---
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: --- 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
--- End code ---
I hope I can make them evolve even further.
Numsgil:
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.
Welwordion:
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.
Endy:
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 =
Navigation
[0] Message Index
Go to full version