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.


Topics - Gaiacarra

Pages: [1]
1
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

2
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]