29
« 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.