Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: spork22 on June 01, 2014, 02:39:06 PM

Title: Dividers
Post by: spork22 on June 01, 2014, 02:39:06 PM
It would be cool if there was a bot that gained a lot of energy and became really big. When it reaches a certain huge size, and when a threat is detected (or food) it reproduces into thousands of little ones, which attack or eat the target. When they're done, they eat each other until it's back into one big bot.
Title: Re: Dividers
Post by: Numsgil on June 01, 2014, 02:52:22 PM
The hard part is saving state to remember that you're in a "divide" phase.  I think racial memory works, so that's probably how you'd have to do it.
Title: Re: Dividers
Post by: Botsareus on June 01, 2014, 03:05:43 PM
Code: [Select]
'Perfect Bot for evolution
'FirstBot is the official name

'/*****proper reproduction 1

cond
  *.nrg
  20000
  >
start
  50
  .repro
  store
  'if time to reproduce store it
  1
  972
  store
stop

cond
  '/after robot reproduces it reproduces more until energy less then 3000
  *972
  1
  =
start
  50
  .repro
  store
stop

'***** 2

cond
  *.nrg
  3000
  <
start
  0
  972
  store
stop

'\*****very simple find food method 3

cond
start
 -1
  .shoot
  store
  10
  .up
  store
stop
end

Have fun!  ;)
Title: Re: Dividers
Post by: spork22 on June 01, 2014, 03:28:59 PM
Nice. It could probably use a better turning method though..
Title: Re: Dividers
Post by: spork22 on June 01, 2014, 03:56:23 PM
Unless that's just a base bot. Because it doesn't turn at all
Title: Re: Dividers
Post by: Numsgil on June 01, 2014, 06:21:13 PM
Yeah it's just a base level bot; you'll need to expand on it if you want it to be more clever :D
Title: Re: Dividers
Post by: spork22 on June 01, 2014, 11:43:33 PM
I thought so. I was already playing around with the genes.
Title: Re: Dividers
Post by: spork22 on June 04, 2014, 07:04:12 PM
I've been testing out these genes on a number of bots. It was extremely successful with H.Hunter3, Dominator Invincibalis, Fishy, and Fish School. In all of them, they multiplied explosively into a large swarm of bots. However, all of them had too good of a conspec system to eat each other and become one big bot again.
Title: Re: Dividers
Post by: Shadowgod2 on June 04, 2014, 11:49:25 PM
place it at the end and modify the conspec to allow it to do what you want.