Bots and Simulations > Untagged bots
Smarter algae
Moonfisher:
FruitFlies can live off the alge with the shoot gene
But then again it has no slime or tie defences and fruitflies are too small to hit.
Here's a capped version that keeps the fruitfly population between 100 and 200. (You can change the first constant "maxpop" if you want more flies, if the sim is very large it may be an idea to increase it or they'll spread out too thin.)
--- Code: ---def maxpop 100
def alge 13
def rand 110
def type 973
cond
*.nrg 15 >
*.numties 0 != or
start
.fixpos dec
'-- Birth
*.robage 0 =
314 .aimright store
.deltie inc
300 .eye5width store
.dnalen .memloc store
.dnalen .tmemloc store
15 rnd .rand store
*.rand 5 < and
*.rand .type store
*.type 0 =
5 rnd .type store
'-- Reproduction
*.body 5 >
*.nrg 80 > and
*.totalmyspecies .maxpop 2 mult < and
*.maxvel .dn store
50 .repro store
*.totalmyspecies .maxpop <
*.nrg 200 > and
50 *.body 10 mult sub 0 floor .strbody store
'-- Shrinking
not
*.body 1 > and
*.body 10 mult 10 sub 0 floor .fdbody store
'-- Tie feeding
*.numties 0 !=
*.tiepres .tienum store
*.tmemval *.dnalen =
*.numties 1 > or and
*.numties .deltie store
*.numties 0 !=
*.robage 1 > and
*.trefxpos *.trefypos angle .setaim store
99 .sharenrg store
dupbool
*.memval .alge = and
*.trefxpos *.xpos sub abs *.trefypos *.ypos sub abs pyth 5 div 10 sub 0 floor *.maxvel ceil .up store
*.velsx .dx store
dropbool
dupbool
*.type 1 = and
.tieval .tieloc store
3200 .tieval store
*.memval .alge = and
.tieloc .shoot store
-1 .shootval store
dropbool
dupbool
*.type 2 = and
.shootval .tieloc store
-31999 .tieval store
dropbool
dupbool
*.type 3 = and
.tieloc .tieloc store
-6 .tieval store
*.memval .alge = and
.tieval .shoot store
3200 .shootval store
dropbool
*.type 3 > and
.tieloc .tieloc store
-1 .tieval store
*.memval .alge = and
.tieval .shoot store
3200 .shootval store
'-- Hunting
*.numties 0 =
*.body 1 = and
dupbool
*.eye5 0 =
*.memval *.dnalen = or and
350 .aimright store
dropbool
*.eye5 0 != and
*.memval *.dnalen != and
*.refbody 20 >
*.totalmyspecies 600 > or and
*.refxpos *.refypos angle .setaim store
.tie inc
*.memval .alge = and
*.velsx .dx store
*.refvelup 15 add *.maxvel ceil 0 floor .up store
.fixpos .shoot store
1 .shootval store
stop
end
--- End code ---
Other than that the behavior for both alge is pretty cool to watch
ashton15:
Hmm... fruitflies and early webfungus beats it, bother maybhe I went wrong with the testing, I found the rebublican bee does okish as well in the same simulation as it. I reckon I might give making a multi-cellular algae a try.
Botsareus:
Sorry, can not qualify for alga as it is a pre-chloroplast model.
Navigation
[0] Message Index
[*] Previous page
Go to full version