Author Topic: Newbie and population control  (Read 3833 times)

Offline lxstoian

  • Bot Neophyte
  • *
  • Posts: 3
    • View Profile
Newbie and population control
« on: February 09, 2008, 11:03:57 AM »
Hello folks. I stumbled over Darwinbos two days ago and liked the idea so started to work on my own bot.
I made a modified version of Animal_Minimalis By: Nums, which for some reason without any mutation as time went by ended up dividing suddenly into hundreds of individuals. I managed to select an individual that mutated and does not present this problem. It slowly eats everything else until its the only thing left. What could I use for a population control.
Here is the DNA.
'#name: spinner.txt
'#generation: 5
'#mutations: 2
 cond
 *.eye5 0 >
 *.refeye *.myeye !=
 start
 *.refveldx .dx store
 *.refvelup 30 add .up store
 stop
 cond
 10 rnd 1 =
 *50 21 >
 start
 200 rnd 100 sub .aimleft store
 stop
 cond
 *50 23 >
 *52 2 <
 start
 *50 *.eye5 sub 10 div .up store
 *50 *.eye5 sub -10 div .dn store
 stop
 cond
 *50 100 <
 start
 50 inc
 stop
 cond
 *.eye5 50 >
 *.refeye *.myeye !=
 start
 -1 .shoot store
 *.refvelup .up store
 stop
 cond
 *.eye5 50 >
 *.eye5 *.eye4 =
 *.eye5 *.eye6 =
 *.refeye 32 !=
 *50 21 >
 start
 *51 .tie store
 0 .aimleft store
 0 and
 .aimright store
 stop
 cond
 *.eye5 0 =
 *.refeye *.myeye =
 or
 start
 314 rnd .aimright store
 stop
 cond
 *.nrg 20000 >
 *.eye5 0 =
 *52 1 !=
 start
 50 .repro store
 15 50 store
 stop
 cond
 *.nrg 10000 >
 *52 2 =
 start
 30 .repro store
 stop
 cond
 *.waste 40 >
 start
 .backshot inc
 -4 .shoot store
 *.waste .shootval store
 stop
 cond
 *.shdn 0 <
 *.pleas -10 <
 start
 620 .aimleft store
 stop
 cond
 620 .aimleft store
 stop

'#hash: H^*r_>ZY7^CH)rIHW86U

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Newbie and population control
« Reply #1 on: February 09, 2008, 12:24:10 PM »
Why does this forum anytime forget my password.   ,has there anything changed since the last forum-update.

Anyway,

there are numerous ways to have population control.

Cut back the veggie-repop time or veggie-max, cut back the nrg-income of the veggie. There are numerous ways.

Possible if you just installed DB the veggie-income nrg could have been set at 10000, as it had to be in the first version and was approciate for all veggies together. Now the number should be set something around 30, becouse it is the energie-income for every seperate veggie. A large nrg-incoming could couse a population mayhem, maybe that is troubling you.

You could also let the bot itself deside for population control. At the other side the bot can it that case break him own control with mutations.
Smooth population control.LINK
Oh my god, who the hell cares.

Offline lxstoian

  • Bot Neophyte
  • *
  • Posts: 3
    • View Profile
Newbie and population control
« Reply #2 on: February 09, 2008, 12:35:08 PM »
The code on that post makes my bot explode into a few hundred small bots.

Also is there anyway to make it more active, move around. I called it spinner cuz thats all that it does. Spins and eats everything that enters its range.

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Newbie and population control
« Reply #3 on: February 09, 2008, 02:21:03 PM »
Quote from: lxstoian
The code on that post makes my bot explode into a few hundred small bots.

Also is there anyway to make it more active, move around. I called it spinner cuz thats all that it does. Spins and eats everything that enters its range.
The bot you posted doesn't explode in a few hundred bots when I run it.

A mutation could couse a bot to have a cancerous behaviour, a bot trying to repoduce every cycle. I don't know how to stop that. Mostly that kind of bot kills themself off after a while anyway.

It spinns and eats everything. What's wrong with it. Most bots tend to get duller and duller when they evolve, but this one does move and attack, altrough not very fast.
It does spoil energie as well, spinning and moving and desame time, it isn't very effective to go forward turn 180 degrees and go forward again
Oh my god, who the hell cares.

Offline lxstoian

  • Bot Neophyte
  • *
  • Posts: 3
    • View Profile
Newbie and population control
« Reply #4 on: February 09, 2008, 03:04:01 PM »
Well I think I managed to get a more active version that now doesn't stop moving. I added some code to the previous one and let it mutate.
This one seems to hunt very active and also for some reason it develops some sort of protuberance.  
Can someone tell me if that horn is a bug.
'#name: spinner1.1
'#generation: 11
'#mutations: 1
 cond
 *.eye5 0 =
 start
 10 .up store
 stop
 cond
 *.eye5 0 >
 *.refeye *.myeye !=
 start
 *.refveldx .dx store
 *.refvelup 30 add .up store
 stop
 cond
 10 rnd 1 =
 *50 21 >
 start
 200 rnd 100 sub .aimleft store
 stop
 cond
 *50 23 >
 *52 2 <
 start
 *50 *.eye5 sub 10 div .up store
 *50 *.eye5 sub -10 div .dn store
 stop
 cond
 *50 100 add start
 50 inc
 stop
 cond
 *.eye5 50 >
 *.refeye *.myeye !=
 start
 -1 .shoot store
 *.refvelup .up store
 stop
 cond
 *.eye5 50 >
 *.eye5 *.eye4 =
 *.eye5 *.eye6 =
 *.refeye 32 *50 21 >
 start
 *51 .tie store
 0 .aimleft store
 0 and
 .aimright store
 stop
 cond
 *.eye5 0 =
 *.refeye *.myeye =
 or
 start
 314 rnd .aimright store
 stop
 cond
 *.nrg 20000 >
 *.eye5 0 =
 *52 1 !=
 start
 50 .repro store
 15 50 store
 stop
 cond
 *.nrg 10000 >
 *52 2 =
 start
 30 .repro store
 stop
 cond
 *.waste 40 >
 start
 .backshot inc
 -4 .shoot store
 *.waste .shootval store
 stop
 cond
 *.shdn 0 <
 *.pleas -10 <
 start
 620 .aimleft store
 stop
 620 .aimleft store
 stop
 end

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Newbie and population control
« Reply #5 on: February 09, 2008, 03:05:46 PM »
Quote from: lxstoian
Can someone tell me if that horn is a bug.
It's probably just a movement vector.  Turn them off via the View menu.
Many beers....