Welcome To Darwinbots > Newbie

Evolution

(1/2) > >>

Gaiacarra:
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?

Numsgil:

--- Quote from: Gaiacarra ---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.
--- End quote ---

Welcome!  By all means, aggressively dig in.  Best way to learn.


--- Quote ---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.
--- End quote ---

You might want to give Enitor Comesum a look.  It's a pretty simple bot that just eats anything weaker than it, and runs from anything stronger than it (that's not a veggy).


--- Quote ---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?
--- End quote ---

The DNA defines the behavior of a bot.  A mutation can either be a single point mutation that just changes a single random base pair, or it can do more interesting things like insert random DNA or delete a section of DNA.  Viruses are also a common way to add a lot of DNA to a bot.  A virus rampantly going through a population of bots can totally overwhelm any natural DNA a bot has.


--- Quote ---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?
--- End quote ---

Shot strength and most othing things are determined by how many body points a bot has.  The more body, the stronger the bot is.  Bots can also power up shots by spending more energy, but this isn't a very widespread feature.


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

A zerobot is just a bot whose DNA is all 0s.  You would then leave it floating in the environment and random point mutations would eventually, if the settings are right, produce a simple bot that can reproduce and feed.  In theory it would then be possible to carefully grow this ex nihilo bot species into a formidable and awesomely adapted species.

Gaiacarra:
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?

Light:

--- Quote from: Gaiacarra ---Ok... so most bots reproduce when they have a certain amount of Energy, right? And Body is allocated to offspring just like Energy?
--- End quote ---
Yes and yes


--- 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?
--- End quote ---
No it kills bots with less body than it has


--- Quote from: Gaiacarra ---In any case, how do bots check if a target is of their own species or not? Just *.refeye *.myeye != ?
--- End quote ---

That is one of the oldest ways to determine if someone is friend or foe by assuming someone  with the same number of eye commands is the same species as yourself, there are many other methods.


--- Quote from: Gaiacarra ---Another unrelated question... can a bot evolve an immunity to a certain virus/poison/venom?
--- End quote ---
No

Gaiacarra:

--- 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?
--- End quote ---
No it kills bots with less body than it has

--- End quote ---
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.

Navigation

[0] Message Index

[#] Next page

Go to full version