Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Gaiacarra

Pages: [1]
1
Untagged bots / Artemis Minimalis
« on: October 17, 2007, 01:40:07 PM »
Code: [Select]
'Will not kill its own young.
It's supposed to do that. If it spots something that's it's own species AND is under 500 cycles old, it leaves it alone.

But once they're adults they're fair game.

2
Untagged bots / Artemis Minimalis
« on: October 15, 2007, 02:27:01 AM »
Thanks Numsgil, though I changed it to:

Code: [Select]
*.velscalar 15 <
...because at 0 = the bots almost never move because brownian motion or gravity or whatever it is that makes them 'float' when the friction isn't set to sandpaper, keeps their velocity just a little above zero.

Code: [Select]
'Artemis Minimalis
'Has basic but efficient hunting instincts.
'Will not kill its own young.

cond
 *.eye5 0 =
 *.velscalar 15 <
start
 314 rnd .aimdx store
 60 .dn store
stop

cond
 *.refeye *.myeye =
 500 *.robage > and
start
 314 rnd .aimdx store
stop

cond
 *.eye3 *.eye5 >
 *.eye3 *.eye7 <
start
 -25 .aimdx store
stop

cond
 *.eye7 *.eye5 >
 *.eye7 *.eye3 >
start
 25 .aimdx store
stop

cond
 *.eye5 0 >
start
 *.refveldx .dx store
 *.refvelup 30 add .up store
stop

cond
 *.eye5 50 >
start
-1 .shoot store
 *.refvelup .up store
stop

' Gene 4 Reproduce
cond
 *.nrg 20000 >
start
 20 .repro store
stop

end

Yes, A. Minimalis is very basic indeed, I plan on adding a bunch more genes for finding food. I like to just thrown 'em in with some T. Preservans and watch.

3
Newbie / Evolution
« on: October 14, 2007, 04:11:56 PM »
Ok I have another unrelated quesiton; is there anyway to make a bot selfdestruct?

4
Untagged bots / Artemis Minimalis
« on: October 14, 2007, 11:42:20 AM »
My first ever full bot, pretty basic but an ok search pattern.

Code: [Select]
'Artemis Minimalis
'By Gaiacarra October 2007
'Has basic but fairly efficient hunting instincts.
'Will not kill its own young.

'''''''''''''''''''''''''''''''''''''
'Wander if there's nothing to eat
'''''''''''''''''''''''''''''''''''''
cond
 *.eye5 0 =
start
 314 rnd .aimdx store
 60 .dn store
stop


'''''''''''''''''''''''''''''''''''''
'Don't eat young conspecifics
'''''''''''''''''''''''''''''''''''''
cond
 *.refeye *.myeye =
 500 *.robage > and
start
 314 rnd .aimdx store
stop


'''''''''''''''''''''''''''''''''''''
'Lock-On to targets
'''''''''''''''''''''''''''''''''''''
cond
 *.eye3 *.eye5 >
 *.eye3 *.eye7 <
start
 -25 .aimdx store
stop

cond
 *.eye7 *.eye5 >
 *.eye7 *.eye3 >
start
 25 .aimdx store
stop

cond
 *.eye5 0 >
start
 *.refveldx .dx store
 *.refvelup 30 add .up store
stop


'''''''''''''''''''''''''''''''''''''
'Open fire
'''''''''''''''''''''''''''''''''''''
cond
 *.eye5 50 >
start
-1 .shoot store
 *.refvelup .up store
stop

'''''''''''''''''''''''''''''''''''''
'Reproduce
'''''''''''''''''''''''''''''''''''''
cond
 *.nrg 20000 >
start
 20 .repro store
stop

end

5
Newbie / Evolution
« on: October 14, 2007, 11:03:09 AM »
Quote from: Light
Quote from: Gaiacarra
So if this thing kills bots with high Body, all the offspring are gonna have low body, right? Or am I completely and utterly wrong?
No it kills bots with less body than it has
Perhaps I should have explained better.

If you have a bot programmed to 10 .repro store at 20000 Energy, then when it reaches 20000 Energy, it'll produce an offspring with 2000 Energy and 10% of its own body. So if it has 10 body the kid will have 1 body, if it has 1000 body the kid'll have 100.

Now, if this bot I'm making (who I'll refer to as Genocidis Darwini from here on out) eats all the bots of a certain species with more than, say, 10000 Body before they can reproduce, then the survivors (the ones with low Body) will all produce offspring with low body, and so on and so forth.

...if, of course, I am correct in my many assumptions.

6
Newbie / Evolution
« on: October 14, 2007, 06:28:32 AM »
Ok... so most bots reproduce when they have a certain amount of Energy, right? And Body is allocated to offspring just like Energy? So if this thing kills bots with high Body, all the offspring are gonna have low body, right? Or am I completely and utterly wrong?

In any case, how do bots check if a target is of their own species or not? Just *.refeye *.myeye != ?

Another unrelated question... can a bot evolve an immunity to a certain virus/poison/venom?

7
Newbie / Evolution
« on: October 13, 2007, 06:23:40 PM »
I'm trying to create a bot that decides whether or not to attack the target based on the target's strength - perhaps a bit advanced, but I like to jump right into things.

Maybe I should give details on what I'm trying to do: the bot seeks out other bots. It eats vegetables if it finds them. If it finds a member of its own species, it checks its strength. If it's weak, it eats it, if not it leaves it alone. It does the reverse to different-species bots (eats the strong, leaves the weak). The idea is that in this way, the bot not only perpetuates beneficial natural selection within it's own species, but also prevents other species from evolving beneficial traits.

So I'd like to know more on evolution in DB. How does DNA change from generation to generation? If I understand correctly it only works with spontaneous mutations, and the mutants who are stronger reproduce more, like in real life. But, for example, how complex can these mutations be? Are they just minor changes to genes, or can genes get deleted or entirely new ones added?

Additionally: do different species deal different amounts of damage with their shots; and do different species have different amounts of max energy/velocity? And if so, can these values change over the generations?

Thanks.

Oh, and while I'm at it -- what's a Zero Bot?

Pages: [1]