Bots and Simulations > Evolution and Internet Sharing Sims
Evolving Dom ternia E
shvarz:
OK, getting back to the topic. Can someone help me out to make Alga ternia a harder catch for Dom ternia E? It needs to be something that can be introduced gently and increased in small steps. What direction would be fun? Allowing it to make some slime? Or shell?
Something like
cond
start
*shell 5 sub
.mkshell
store
stop
Seems a bit boring, don't you think? Any ideas for interesting food beahviour?
Carlo:
Why not something related to the way it moves. For example, it could suddenly move laterally at random or change direction, trying to escape from the predator. Or it could turn back and shoot a few shots.
shvarz:
Hmm, maybe change direction when shot?
Would this work?
cond
.shootup 0 !=
start
10 rand .aimdx store
stop
The value of 10 can be slowly increased to allow turns to become more and more random.
Numsgil:
You could take the revel movement from animal minimalis and reverse it, so that the vegs run away from bots that it sees.
This would encourage your bots to sneak up behind a veggy perhaps.
The small steps could be something simple, like:
*.refvelup 10 div .up store instead of *.refvelup .up store.
Then just decrease 10 to 1 over several steps.
PurpleYouko:
The idea is sound but your coding isn't I'm afraid.
Try this
cond
*.shup 0!=
start
20 rnd 10 sub .aimdx store
stop
This way it can turn in either direction with zero being the middle point for the .aimdx command.
Here is a useful little robot food species that I have been using for mutation sims.
--- Code: ---'Rabbit bot. Food species. Set as autotroph
'practice your chasing skills on this one
def topspeed 5
def directionchange 100
def counter 101
cond
*.vel .topspeed <
start
.topspeed *.vel sub .up store
stop
cond
start
.counter inc
stop
cond
*.counter 100 >
start
600 rnd 300 sub .aimsx store
0 .counter store
stop
cond
*.nrg 6000 >
start
50 .repro store
stop
cond
*.body 200 >
start
100 .fdbody store
stop
end
--- End code ---
You can change the angle and frequency of direction changes using the defined constants. Note that these don't necessarily have to be used as memory locations. They work as constant values too.
Top speed is also adjustable.
This bot will also never get fat and slow.
I use this to try and develop relatively simple bots so that they learn to chase a moving target.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version